We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
install.sh
1 parent c6866ee commit ec3ba19Copy full SHA for ec3ba19
install.sh
@@ -172,11 +172,15 @@ install_nvm_as_script() {
172
nvm_download -s "$NVM_SOURCE_LOCAL" -o "$INSTALL_DIR/nvm.sh" || {
173
echo >&2 "Failed to download '$NVM_SOURCE_LOCAL'"
174
return 1
175
- }
+ } &
176
nvm_download -s "$NVM_EXEC_SOURCE" -o "$INSTALL_DIR/nvm-exec" || {
177
echo >&2 "Failed to download '$NVM_EXEC_SOURCE'"
178
return 2
179
180
+ for job in $(jobs -p | sort)
181
+ do
182
+ wait "$job" || return $?
183
+ done
184
chmod a+x "$INSTALL_DIR/nvm-exec" || {
185
echo >&2 "Failed to mark '$INSTALL_DIR/nvm-exec' as executable"
186
return 3
0 commit comments