Auto merge of #116160 - MaxHearnden:quote-syntax-check, r=Mark-Simulacrum

quote argument to sh -n

This prevents glob expansion (*.py) and field splitting
This commit is contained in:
bors 2023-09-30 21:38:54 +00:00
commit ca62d2c445

2
x
View File

@ -8,7 +8,7 @@
set -eu set -eu
# syntax check # syntax check
sh -n $0 sh -n "$0"
realpath() { realpath() {
if [ -d "$1" ]; then if [ -d "$1" ]; then