aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorrl1987 <rl1987@sdf.lonestar.org>2018-11-20 16:55:35 +0200
committerrl1987 <rl1987@sdf.lonestar.org>2018-11-20 16:55:35 +0200
commit27e982b470f4d401a9be687609897ab3320591e1 (patch)
treefcc852fa669e27b7bcff74d93608c868a02b223c /scripts
parent7dd515b0e0a12cfd9a324a878f7ca6b6b84b24cb (diff)
downloadtor-27e982b470f4d401a9be687609897ab3320591e1.tar.gz
tor-27e982b470f4d401a9be687609897ab3320591e1.zip
Fix SC2046 and SC2086 warnings
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 1e927dd0b1..0b303d5382 100755
--- a/scripts/maint/updateRustDependencies.sh
+++ b/scripts/maint/updateRustDependencies.sh
@@ -20,8 +20,8 @@
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)
@@ -38,8 +38,8 @@ 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
-$CARGO vendor -v --locked --explicit-version --no-delete --sync $TOML $VENDORED
+$CARGO vendor -v --locked --explicit-version --no-delete --sync "$TOML" "$VENDORED"