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

Commit bcc68c9

Browse files
committed
allow spaces in params for "nancy cmd" calls
1 parent 31ae710 commit bcc68c9

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

nancy

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,17 @@ esac
4343

4444
while [ -n "$1" ]
4545
do
46+
if [ ${1%"${1#??}"} = '--' ]; then
4647
cmd="$cmd $1"
47-
shift
48+
else
49+
cmd="$cmd \"$1\""
50+
fi
51+
shift
4852
done
4953

5054
echo "CMD: $cmd"
55+
echo "ORIG: $@"
5156

52-
${cmd}
57+
set -xeio pipefail
58+
eval $cmd
5359

0 commit comments

Comments
 (0)