Skip to content
Myr

Merge pull request #875 from mrueg/remove-backticks

Before adoption: this commit came in with the history the project adopted, so no landing records it.

[shellcheck] Replace backticks with $() command substitution

authored by Jordan Harband · committed by Jordan Harband · parents a43ff7c, 1adcabf · Browse files · 1 file+5 added−5 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+5 added−5 removed

  • other:+5 added−5 removed

1 file+5 added−5 removed

modified:nvm.sh+5 added-5 removed
1166 unmodified lines
1167 NVM_ARCH="arm-pi"1168 fi1169 t="$VERSION-$NVM_OS-$NVM_ARCH"1170 url="$NVM_NODEJS_ORG_MIRROR/$VERSION/node-${t}.tar.gz"1171 sum=`nvm_download -L -s "$NVM_NODEJS_ORG_MIRROR/$VERSION/SHASUMS.txt" -o - | command grep "node-${t}.tar.gz" | command awk '{print $1}'`1171 sum=$(nvm_download -L -s "$NVM_NODEJS_ORG_MIRROR/$VERSION/SHASUMS.txt" -o - | command grep "node-${t}.tar.gz" | command awk '{print $1}')1172 local tmpdir1173 tmpdir="$NVM_DIR/bin/node-${t}"1174 local tmptarball1175 tmptarball="$tmpdir/node-${t}.tar.gz"
59 unmodified lines
1235 tmpdir="$NVM_DIR/src"1236 local tmptarball1237 tmptarball="$tmpdir/node-$VERSION.tar.gz"12381239 if [ "`nvm_download -L -s -I "$NVM_NODEJS_ORG_MIRROR/$VERSION/node-$VERSION.tar.gz" -o - 2>&1 | command grep '200 OK'`" != '' ]; then1239 if [ "$(nvm_download -L -s -I "$NVM_NODEJS_ORG_MIRROR/$VERSION/node-$VERSION.tar.gz" -o - 2>&1 | command grep '200 OK')" != '' ]; then1240 tarball="$NVM_NODEJS_ORG_MIRROR/$VERSION/node-$VERSION.tar.gz"1241 sum=`nvm_download -L -s "$NVM_NODEJS_ORG_MIRROR/$VERSION/SHASUMS.txt" -o - | command grep "node-${VERSION}.tar.gz" | command awk '{print $1}'`1242 elif [ "`nvm_download -L -s -I "$NVM_NODEJS_ORG_MIRROR/node-$VERSION.tar.gz" -o - | command grep '200 OK'`" != '' ]; then1241 sum=$(nvm_download -L -s "$NVM_NODEJS_ORG_MIRROR/$VERSION/SHASUMS.txt" -o - | command grep "node-${VERSION}.tar.gz" | command awk '{print $1}')1242 elif [ "$(nvm_download -L -s -I "$NVM_NODEJS_ORG_MIRROR/node-$VERSION.tar.gz" -o - | command grep '200 OK')" != '' ]; then1243 tarball="$NVM_NODEJS_ORG_MIRROR/node-$VERSION.tar.gz"1244 fi12451246 if (
462 unmodified lines
1709 "$VERSION_PATH" 2>/dev/null1710 echo "$NVM_SUCCESS_MSG"17111712 # rm any aliases that point to uninstalled version.1713 for ALIAS in `command grep -l "$VERSION" "$(nvm_alias_path)/*" 2>/dev/null`1713 for ALIAS in $(command grep -l "$VERSION" "$(nvm_alias_path)/*" 2>/dev/null)1714 do1715 nvm unalias "$(command basename "$ALIAS")"1716 done1717 ;;
563 unmodified lines