mirror of
https://github.com/tj/git-extras.git
synced 2026-09-14 01:16:31 -04:00
Use $@ instead of $* re #467
Blind first pass so that I have a PR to remind me...
This commit is contained in:
parent
176ebf9da1
commit
3c874ce9f4
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue