Skip to content

Commit 5cb8b9e

Browse files
committed
Wrap shell args in quotes
1 parent 4ab9da6 commit 5cb8b9e

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

day-00-example/test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ DIR=$(dirname $(realpath $0))
55
$DIR/../scripts/test-deno.sh $DIR "cmd/main.deno.ts"
66
$DIR/../scripts/test-go.sh $DIR "cmd/main.go"
77
$DIR/../scripts/test-node.sh $DIR "cmd/main.node.mjs"
8-
$DIR/../scripts/test-py.sh $DIR "cmd/main.py"
8+
$DIR/../scripts/test-py.sh $DIR "cmd/main.py"

scripts/test-deno.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ set -e
44
# Usage: ../test-deno.sh DIR CMD
55
# Example: ../test-deno.sh /adventofcode2020/day-03 cmd/main.deno.ts
66

7-
DIR=$1
8-
CMD=$2
7+
DIR="$1"
8+
CMD="$2"
99

1010
cat "$DIR/input" | deno run "$DIR/$CMD" | diff - "$DIR/output"
1111
echo "$DIR / deno run $CMD"

scripts/test-go.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ set -e
44
# Usage: ../test-go.sh DIR CMD
55
# Example: ../test-go.sh /adventofcode2020/day-03 cmd/main.go
66

7-
DIR=$1
8-
CMD=$2
7+
DIR="$1"
8+
CMD="$2"
99

1010
cat "$DIR/input" | go run "$DIR/$CMD" | diff - "$DIR/output"
1111
echo "$DIR / go run $CMD"

scripts/test-node.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ set -e
44
# Usage: ../test-node.sh DIR CMD
55
# Example: ../test-node.sh /adventofcode2020/day-03 cmd/main.node.mjs
66

7-
DIR=$1
8-
CMD=$2
7+
DIR="$1"
8+
CMD="$2"
99

1010
cat "$DIR/input" | node "$DIR/$CMD" | diff - "$DIR/output"
1111
echo "$DIR / node $CMD"

scripts/test-py.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ set -e
44
# Usage: ../test-py.sh DIR CMD
55
# Example: ../test-py.sh /adventofcode2020/day-03 cmd/main.py
66

7-
DIR=$1
8-
CMD=$2
7+
DIR="$1"
8+
CMD="$2"
99

1010
cat "$DIR/input" | python3 "$DIR/$CMD" | diff - "$DIR/output"
1111
echo "$DIR / python3 $CMD"

0 commit comments

Comments
 (0)