Skip to content

Commit 016c08c

Browse files
authored
fix: Add quotes around variables in run-examples.sh (#397)
Update run-examples.sh
1 parent b642120 commit 016c08c

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/scripts/run-examples.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ EXAMPLES=$(echo "$EXAMPLES_WITH_FEATURES $EXAMPLES_WITHOUT_FEATURES" | tr ' ' '\
1313
# Run the examples
1414
for example in $EXAMPLES; do
1515
if [ "$(echo "$example" | grep '#')" ]; then
16-
name=$(echo $example | cut -d '#' -f 1)
17-
features=$(echo $example | cut -d '#' -f 2)
18-
cargo run --package halo2_proofs --example $name --features $features
16+
name="$(echo "$example" | cut -d '#' -f 1)"
17+
features="$(echo "$example" | cut -d '#' -f 2)"
18+
cargo run --package halo2_proofs --example "$name" --features "$features"
1919
else
20-
cargo run --package halo2_proofs --example $example
20+
cargo run --package halo2_proofs --example "$example"
2121
fi
2222
done

0 commit comments

Comments
 (0)