aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2013-10-20 12:43:41 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2013-10-20 12:43:41 +0200
commitd2e3a3795f345fd78ead2cf06b1134b46f9d4bc4 (patch)
treef688a32d667bc2c44ef994d4a1895911758add61 /app
parentdc180da2125df5eb8953ee98123ba7d73b676ff6 (diff)
downloadapp.sh-d2e3a3795f345fd78ead2cf06b1134b46f9d4bc4.tar.gz
app.sh-d2e3a3795f345fd78ead2cf06b1134b46f9d4bc4.tar.bz2
app.sh-d2e3a3795f345fd78ead2cf06b1134b46f9d4bc4.tar.xz
app.sh-d2e3a3795f345fd78ead2cf06b1134b46f9d4bc4.zip
o Getting app-cat-conf to read from ~/.appconfig too.
Diffstat (limited to 'app')
-rwxr-xr-xapp9
1 files changed, 6 insertions, 3 deletions
diff --git a/app b/app
index 4993176..81c2c36 100755
--- a/app
+++ b/app
@@ -27,7 +27,7 @@ APPSH_HOME=`cd "$APPSH_HOME" && pwd`
. $APPSH_HOME/lib/common
echo_debug=no
-while getopts "h" opt
+while getopts ":hD:" opt
do
case $opt in
h)
@@ -35,9 +35,11 @@ do
;;
D)
echo_debug=yes
+ eval OPTIND=$((OPTIND-1))
+ shift
;;
- \?)
- usage
+ *)
+ break
;;
esac
done
@@ -66,4 +68,5 @@ PATH=$APPSH_HOME/bin:$PATH
# TODO: this is probably a good place to clean up the environment
exec env \
"APPSH_HOME=$APPSH_HOME" \
+ "echo_debug=$echo_debug" \
"$bin" "$@"