aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-02-20 14:07:24 -0800
committerfriendica <info@friendica.com>2015-02-20 14:07:24 -0800
commit835b2594550a8f53ec5beee370129e2add162ab0 (patch)
tree5dbcd7bd1f7a0f9fa60190254bb5bf58f0f93868 /util
parent8eedc9d5766df8d57815bdd38e5fa5e3757e7555 (diff)
downloadvolse-hubzilla-835b2594550a8f53ec5beee370129e2add162ab0.tar.gz
volse-hubzilla-835b2594550a8f53ec5beee370129e2add162ab0.tar.bz2
volse-hubzilla-835b2594550a8f53ec5beee370129e2add162ab0.zip
minor issues with arg passing
Diffstat (limited to 'util')
-rwxr-xr-xutil/add_addon_repo4
-rwxr-xr-xutil/add_theme_repo2
-rwxr-xr-xutil/update_addon_repo11
-rwxr-xr-xutil/update_theme_repo11
4 files changed, 19 insertions, 9 deletions
diff --git a/util/add_addon_repo b/util/add_addon_repo
index caefe820c..7d2b74cff 100755
--- a/util/add_addon_repo
+++ b/util/add_addon_repo
@@ -1,6 +1,6 @@
#!/bin/sh -f
-if [ $# -eq '3' ]; then
+if [ $# -ne 2 ]; then
echo usage: $0 repo_url nickname
exit 1
fi
@@ -8,7 +8,7 @@ fi
mkdir -p extend/addon/$2
mkdir addon > /dev/null 2>&1
git clone $1 extend/addon/$2
-if [ $? -eq '0' ]; then
+if [ $? -eq 0 ]; then
exit $?
fi
diff --git a/util/add_theme_repo b/util/add_theme_repo
index fe4384604..5ccbccd3f 100755
--- a/util/add_theme_repo
+++ b/util/add_theme_repo
@@ -1,7 +1,7 @@
#!/bin/sh -f
-if [ $# -eq '3' ]; then
+if [ $# -ne 2 ]; then
echo usage: $0 repo_url nickname
exit 1
fi
diff --git a/util/update_addon_repo b/util/update_addon_repo
index d5dedeb50..0d0cbc4a8 100755
--- a/util/update_addon_repo
+++ b/util/update_addon_repo
@@ -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/addon
exit 1
fi
cd extend/addon/$1
-git pull
+
+if [ -d .git ] ; then
+ git pull
+fi
diff --git a/util/update_theme_repo b/util/update_theme_repo
index 51d2f4175..f7b26ae34 100755
--- a/util/update_theme_repo
+++ b/util/update_theme_repo
@@ -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