Skip to content

Commit ea026f9

Browse files
authored
quote argument to sh -n
This prevents glob expansion (*.py) and field splitting
1 parent 1cbfeab commit ea026f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
set -eu
99

1010
# syntax check
11-
sh -n $0
11+
sh -n "$0"
1212

1313
realpath() {
1414
if [ -d "$1" ]; then

0 commit comments

Comments
 (0)