aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-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