summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorrl1987 <rl1987@sdf.lonestar.org>2018-11-04 19:34:46 +0200
committerrl1987 <rl1987@sdf.lonestar.org>2018-11-04 19:34:46 +0200
commit5b48af9c4cc591d4db00cc1060de4d519a80023b (patch)
treed1b757684365cd7459b9b5a8ac0cd54cb19d138d /scripts
parent674ef53a7e953a724b4f3bfe2f1e06ba2897bba2 (diff)
downloadtor-5b48af9c4cc591d4db00cc1060de4d519a80023b.tar.gz
tor-5b48af9c4cc591d4db00cc1060de4d519a80023b.zip
Fix all instances of shellcheck warning SC2006
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/maint/updateRustDependencies.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/maint/updateRustDependencies.sh b/scripts/maint/updateRustDependencies.sh
index a5a92579d3..d2680856b8 100755
--- a/scripts/maint/updateRustDependencies.sh
+++ b/scripts/maint/updateRustDependencies.sh
@@ -20,11 +20,11 @@
set -e
-HERE=`dirname $(realpath $0)`
-TOPLEVEL=`dirname $(dirname $HERE)`
+HERE=$(dirname $(realpath $0))
+TOPLEVEL=$(dirname $(dirname $HERE))
TOML="$TOPLEVEL/src/rust/Cargo.toml"
VENDORED="$TOPLEVEL/src/ext/rust/crates"
-CARGO=`which cargo`
+CARGO=$(which cargo)
if ! test -f "$TOML" ; then
printf "Error: Couldn't find workspace Cargo.toml in expected location: %s\n" "$TOML"
@@ -38,7 +38,7 @@ if test -z "$CARGO" ; then
printf "Error: cargo must be installed and in your \$PATH\n"
fi
-if test -z `cargo --list | grep vendor` ; then
+if test -z $(cargo --list | grep vendor) ; then
printf "Error: cargo-vendor not installed\n"
fi