Skip to content

Commit

Permalink
Auto merge of #116160 - MaxHearnden:quote-syntax-check, r=Mark-Simula…
Browse files Browse the repository at this point in the history
…crum

quote argument to sh -n

This prevents glob expansion (*.py) and field splitting
  • Loading branch information
bors committed Sep 30, 2023
2 parents 2f89c41 + ea026f9 commit ca62d2c
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 ca62d2c

Please sign in to comment.