diff --git a/bin/git-touch b/bin/git-touch index 101eaf3..05b7158 100755 --- a/bin/git-touch +++ b/bin/git-touch @@ -1,8 +1,11 @@ #!/usr/bin/env bash -test $# -lt 1 && echo "filename required" 1>&2 && exit 1 +USAGE(){ + echo "git touch [ . . .]" 1>&2 + exit 1 +} -filenames="$@" +test $# -lt 1 && USAGE for filename in $@; do touch "$filename" \