From 33cf192d0a45d34092e098ce7cf6f433469b1cf8 Mon Sep 17 00:00:00 2001 From: emmett1 Date: Mon, 5 Mar 2018 07:03:02 +0800 Subject: [PATCH] updated --- scratch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scratch b/scratch index 6176991..0f3eb3c 100755 --- a/scratch +++ b/scratch @@ -674,8 +674,8 @@ parse_options() { -s | --search) testinput "$2" && searchpkg "$2" || exit 1; shift 2 ;; -t | --create-template) testinput "$2" && createtemplate "$2" || exit 1; shift 2 ;; -pp | --port-path) testinput "$2" && showportpath "$2" || exit 1; shift 2 ;; - -sd | --source-dir) testinput "$2" && { OPTS+=($1 $2); SOURCE_PKG="$2"; } || exit 1; shift 2 ;; - -pd | --package-dir) testinput "$2" && { OPTS+=($1 $2); OUTPUT_PKG="$2"; } || exit 1; shift 2 ;; + -sd | --source-dir) testinput "$2" && OPTS+=($1 $2) || exit 1; shift 2 ;; + -pd | --package-dir) testinput "$2" && OPTS+=($1 $2) || exit 1; shift 2 ;; -p | --package) testinput "$2" && while [ "$2" ]; do if echo "" $2 | grep -vq "^ -"; then INSTALLPKG+=($2); shift