about summary refs log tree commit diff
path: root/scripts/test_bootstrap.sh
diff options
context:
space:
mode:
authorJakob Hellermann <jakob.hellermann@protonmail.com>2020-11-04 15:35:42 +0100
committerJakob Hellermann <jakob.hellermann@protonmail.com>2020-11-04 16:07:42 +0100
commitd6a9dfa3d414205acd8700802ddd30490db18c05 (patch)
tree2a3634fe35bb38ab2a2332e8349311d5dbfec810 /scripts/test_bootstrap.sh
parenta3a508a516f9799ab0299d3737977224ccee654b (diff)
downloadrust-d6a9dfa3d414205acd8700802ddd30490db18c05.tar.gz
rust-d6a9dfa3d414205acd8700802ddd30490db18c05.zip
run 'shellcheck -f diff $(fd --extension sh) | git apply'
Diffstat (limited to 'scripts/test_bootstrap.sh')
-rwxr-xr-xscripts/test_bootstrap.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/test_bootstrap.sh b/scripts/test_bootstrap.sh
index 7f43f81a6cd..e8d5c628638 100755
--- a/scripts/test_bootstrap.sh
+++ b/scripts/test_bootstrap.sh
@@ -1,7 +1,7 @@
 #!/bin/bash
 set -e
 
-cd $(dirname "$0")/../
+cd "$(dirname "$0")/../"
 
 ./build.sh
 source build/config.sh
@@ -11,7 +11,7 @@ git clone https://github.com/rust-lang/rust.git || true
 pushd rust
 git fetch
 git checkout -- .
-git checkout $(rustc -V | cut -d' ' -f3 | tr -d '(')
+git checkout "$(rustc -V | cut -d' ' -f3 | tr -d '(')"
 
 git apply - <<EOF
 diff --git a/.gitmodules b/.gitmodules