Skip to content

Commit

Permalink
Use $@ instead of $* re #467
Browse files Browse the repository at this point in the history
Blind first pass so that I have a PR to remind me...
  • Loading branch information
al-the-x committed Oct 31, 2015
1 parent 1d8534b commit efe6da4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bin/git-touch
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit efe6da4

Please sign in to comment.