Skip to content
This repository was archived by the owner on Aug 16, 2021. It is now read-only.

Commit 249a5a9

Browse files
committed
fix "no payload" message and logic for nancy run
1 parent dde05ea commit 249a5a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nancy_run.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,8 +244,8 @@ while true; do
244244
if [ "${1:0:2}" == "--" ]; then
245245
>&2 echo "ERROR: Invalid option '$1'. Please double-check options."
246246
exit 1
247-
else
248-
>&2 echo "ERROR: \"nancy run\" does not support payload (except \"help\"). Use options, see \"nancy run help\"."
247+
elif [ "${1:0:2}" != "" ]; then
248+
>&2 echo "ERROR: \"nancy run\" does not support payload (except \"help\"). Use options, see \"nancy run help\")"
249249
exit 1
250250
fi
251251
break ;;

0 commit comments

Comments
 (0)