Skip to content

Commit

Permalink
fix shellcheck violations
Browse files Browse the repository at this point in the history
- NIGHTLY and UNSTABLE were unused, presumably intended to be exported as
environment variables

- quoting of interpolated variable (not strictly necessary for crate names)
  • Loading branch information
nothingmuch committed Jan 3, 2025
1 parent 850dda1 commit 058f11a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions contrib/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ for dep in $DEPS; do
rustc --version

# Some tests require certain toolchain types.
NIGHTLY=false
STABLE=true
export NIGHTLY=false
export STABLE=true
if cargo --version | grep nightly; then
STABLE=false
NIGHTLY=true
Expand All @@ -23,7 +23,7 @@ for dep in $DEPS; do

for crate in $CRATES; do
(
cd $crate
cd "$crate"
./contrib/test.sh
)
done
Expand Down
2 changes: 1 addition & 1 deletion contrib/test_local.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ rustc --version

for crate in $CRATES; do
(
cd $crate
cd "$crate"
./contrib/test.sh
)
done

0 comments on commit 058f11a

Please sign in to comment.