Use $@ instead of $* re #467

Blind first pass so that I have a PR to remind me...
This commit is contained in:
David Rogers 2015-10-30 22:12:16 -04:00 committed by David Rogers
parent 176ebf9da1
commit 3c874ce9f4

View file

@ -1,8 +1,8 @@
#!/usr/bin/env bash
filename="$*"
test $# -lt 1 && echo "filename required" 1>&2 && exit 1
test -z "$filename" && echo "filename required" 1>&2 && exit 1
filenames="$@"
touch "$filename" \
&& git add "$filename"
touch "$filenames" \
&& git add "$filenames"