From f47f556cd49582d34122802c120ce00cf4da2e5a Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Mon, 28 Oct 2013 21:21:05 +0100 Subject: o Fixing broken app-conf. --- bin/app-conf | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/bin/app-conf b/bin/app-conf index 8f34b57..0742b62 100755 --- a/bin/app-conf +++ b/bin/app-conf @@ -20,8 +20,6 @@ export APPSH_HOME=$(cd $(dirname "$0")/.. && pwd) # # set -- `app-conf get -s maven.artifact_id maven.group_id` -PATH=$APPSH_HOME/libexec:$PATH - format_conf() { local IFS== while read key value @@ -60,7 +58,7 @@ conf_set() { echo "$name=$value" >> "$file.tmp" mv "$file.tmp" "$file" -}; shift +} conf_delete() { local file=$1; shift @@ -82,7 +80,7 @@ conf_import() { } usage_text() { - echo "usage: $0 conf [-l location] " + echo "usage: $usage_app conf [-l location] " echo "" echo "Available commands:" echo " get [name] - returns a single value" @@ -112,8 +110,8 @@ do location="$OPTARG" shift 2; ;; - get|list|set|delete|import) - usage "Unknown command: $OPTARG" + *) + break ;; esac done -- cgit v1.2.3