Skip to content

Commit 9596b31

Browse files
authored
Merge pull request #53 from LuoZihYuan/patch-1
fix: check if $YAML is actually pointing to a file
2 parents 7169692 + b1b2c84 commit 9596b31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

start.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ while getopts "h?m:p:y:" opt; do
2525
done
2626

2727
#yaml file must be specified
28-
if [ "$YAML" == "" ] ; then
28+
if [ -z "$YAML" ] || [ ! -f "$YAML" ] ; then
2929
usage;
3030
exit 1;
3131
fi;

0 commit comments

Comments
 (0)