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
+1 -1
View File
@@ -8,7 +8,7 @@
set -eu
# syntax check
sh -n $0
sh -n "$0"
realpath() {
if [ -d "$1" ]; then