quote argument to sh -n

This prevents glob expansion (*.py) and field splitting
This commit is contained in:
MaxHearnden 2023-09-25 20:22:20 +01:00 committed by GitHub
parent 1cbfeabfa9
commit ea026f93d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
x
View File

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