show ignored files if no arguments are provided

This commit is contained in:
Jonhnny Weslley 2010-10-08 10:14:29 -03:00 committed by Tj Holowaychuk
parent 1b5d9890f9
commit 81ede0a4ba

View file

@ -1,10 +1,10 @@
#!/bin/sh
if test $# -eq 0; then
echo "arguments required" && exit 1
cat .gitignore
else
for pattern in $@; do
echo $pattern >> .gitignore
echo "... added '$pattern'"
done
fi
fi