minor issues with arg passing

This commit is contained in:
friendica
2015-02-20 14:07:24 -08:00
parent 8eedc9d576
commit 835b259455
4 changed files with 19 additions and 9 deletions

View File

@@ -1,10 +1,15 @@
#!/bin/sh -f
if [ $# -eq '2' ]; then
echo usage: $0 nickname
if [ $# -ne 1 ]; then
echo usage: $0 repository
echo "Repositories:"
ls extend/theme
exit 1
fi
cd extend/theme/$1
git pull
if [ -d .git ] ; then
git pull
fi