[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/master] Fix SC2046 and SC2086 warnings
commit 27e982b470f4d401a9be687609897ab3320591e1
Author: rl1987 <rl1987@xxxxxxxxxxxxxxxx>
Date: Tue Nov 20 16:55:35 2018 +0200
Fix SC2046 and SC2086 warnings
---
scripts/maint/updateRustDependencies.sh | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/scripts/maint/updateRustDependencies.sh b/scripts/maint/updateRustDependencies.sh
index 1e927dd0b..0b303d538 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"
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits