aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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