From 3c874ce9f4694674e1f476b6ee4a116dd16a7178 Mon Sep 17 00:00:00 2001 From: David Rogers Date: Fri, 30 Oct 2015 22:12:16 -0400 Subject: [PATCH] Use `$@` instead of `$*` re #467 Blind first pass so that I have a PR to remind me... --- bin/git-touch | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/git-touch b/bin/git-touch index 25627f7..0cccada 100755 --- a/bin/git-touch +++ b/bin/git-touch @@ -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"