aboutsummaryrefslogtreecommitdiff
path: root/bin/app-conf
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2013-10-28 21:21:05 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2013-10-28 21:21:05 +0100
commitf47f556cd49582d34122802c120ce00cf4da2e5a (patch)
treed98129e5315d2f8a3775a435223cc0f417f8d0c4 /bin/app-conf
parente694d9024cddf4dd54efd828927e3fd5e70b6c3a (diff)
downloadapp.sh-f47f556cd49582d34122802c120ce00cf4da2e5a.tar.gz
app.sh-f47f556cd49582d34122802c120ce00cf4da2e5a.tar.bz2
app.sh-f47f556cd49582d34122802c120ce00cf4da2e5a.tar.xz
app.sh-f47f556cd49582d34122802c120ce00cf4da2e5a.zip
o Fixing broken app-conf.
Diffstat (limited to 'bin/app-conf')
-rwxr-xr-xbin/app-conf10
1 files 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] <command>"
+ echo "usage: $usage_app conf [-l location] <command>"
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