[tor-commits] [tor/master] Fix SC2230 warning

nickm at torproject.org nickm at torproject.org
Wed Dec 5 14:02:55 UTC 2018


commit ba2a9988ccd40b9c2ef1f16cb7960191b4131d78
Author: rl1987 <rl1987 at sdf.lonestar.org>
Date:   Tue Nov 20 16:57:57 2018 +0200

    Fix SC2230 warning
---
 scripts/maint/updateRustDependencies.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/maint/updateRustDependencies.sh b/scripts/maint/updateRustDependencies.sh
index 0b303d538..6d0587351 100755
--- a/scripts/maint/updateRustDependencies.sh
+++ b/scripts/maint/updateRustDependencies.sh
@@ -24,7 +24,7 @@ HERE=$(dirname "$(realpath "$0")")
 TOPLEVEL=$(dirname "$(dirname "$HERE")")
 TOML="$TOPLEVEL/src/rust/Cargo.toml"
 VENDORED="$TOPLEVEL/src/ext/rust/crates"
-CARGO=$(which cargo)
+CARGO=$(command -v cargo)
 
 if ! test -f "$TOML"  ; then
     printf "Error: Couldn't find workspace Cargo.toml in expected location: %s\\n" "$TOML"





More information about the tor-commits mailing list