From eb06fa5d24eaf6d4569ee0ff82d3df1e1eda79ef Mon Sep 17 00:00:00 2001 From: rhatto Date: Fri, 6 Oct 2006 11:47:27 +0000 Subject: simplepkg small fix git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@15 04377dda-e619-0410-9926-eae83683ac58 --- src/createpkg | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/createpkg') 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 -- cgit v1.2.3