quote argument to sh -n
This prevents glob expansion (*.py) and field splitting
This commit is contained in:
parent
1cbfeabfa9
commit
ea026f93d6
1 changed files with 1 additions and 1 deletions
2
x
2
x
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue