aboutsummaryrefslogtreecommitdiff
path: root/src/createpkg
diff options
context:
space:
mode:
Diffstat (limited to 'src/createpkg')
-rw-r--r--src/createpkg8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/createpkg b/src/createpkg
index faa7e0e..ce0b417 100644
--- a/src/createpkg
+++ b/src/createpkg
@@ -139,10 +139,7 @@ check_repo
if [ -z "$1" ]; then
safe_exit 4
elif [ "$#" == "2" ]; then
- if [ "$1" == "--sync" ]; then
- sync_repo
- exit
- elif [ "$1" == "--search" ]; then
+ if [ "$1" == "--search" ]; then
find_script $2
exit
elif [ "$1" == "--install" ]; then
@@ -154,6 +151,9 @@ elif [ "$#" == "2" ]; then
else
safe_exit 4
fi
+elif [ "$1" == "--sync" ]; then
+ sync_repo
+ exit
elif [ "${1:0:1}" != "-" ]; then
PACKAGE="$1"
else