Skip to content

Commit

Permalink
quote argument to sh -n
Browse files Browse the repository at this point in the history
This prevents glob expansion (*.py) and field splitting
  • Loading branch information
MaxHearnden authored Sep 25, 2023
1 parent 1cbfeab commit ea026f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
set -eu

# syntax check
sh -n $0
sh -n "$0"

realpath() {
if [ -d "$1" ]; then
Expand Down

0 comments on commit ea026f9

Please sign in to comment.