Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3151154
D4718.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
447 B
Referenced Files
None
Subscribers
None
D4718.diff
View Options
diff --git a/scripts/rust_pre_commit.sh b/scripts/rust_pre_commit.sh
--- a/scripts/rust_pre_commit.sh
+++ b/scripts/rust_pre_commit.sh
@@ -2,14 +2,15 @@
set -e
-source $HOME/.cargo/env
+# shellcheck source=/dev/null
+source "$HOME"/.cargo/env
PATHS="services/commtest"
cargo > /dev/null
for PATH in $PATHS; do
- pushd $PATH
+ pushd "$PATH"
echo "formatting $PATH..."
cargo fmt --all -- --check
echo "checking $PATH..."
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 6, 2:06 AM (8 h, 7 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2427331
Default Alt Text
D4718.diff (447 B)
Attached To
Mode
D4718: [scripts] Clean up `rust_pre_commit.sh` using ShellCheck
Attached
Detach File
Event Timeline
Log In to Comment