aboutsummaryrefslogtreecommitdiff
path: root/bin/app-init
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2013-10-21 23:28:03 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2013-10-21 23:28:03 +0200
commit22f0f794ac4e40866c5d390a7b27b8bd6713e681 (patch)
treeda5f9febae11d7819a0d908b9505997575b04628 /bin/app-init
parent989edff55111db3b457c9e04f3abf296e6ac555c (diff)
downloadapp.sh-22f0f794ac4e40866c5d390a7b27b8bd6713e681.tar.gz
app.sh-22f0f794ac4e40866c5d390a7b27b8bd6713e681.tar.bz2
app.sh-22f0f794ac4e40866c5d390a7b27b8bd6713e681.tar.xz
app.sh-22f0f794ac4e40866c5d390a7b27b8bd6713e681.zip
o Removing silly formatting that left extra spaced at the end of
lines. o Fixing bug in app-conf get subcommand that would only return the first part of values with an equals sign. o Makding sure $HOME is always set.
Diffstat (limited to 'bin/app-init')
-rwxr-xr-xbin/app-init3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/app-init b/bin/app-init
index 7098cb3..fb4f7cd 100755
--- a/bin/app-init
+++ b/bin/app-init
@@ -12,6 +12,7 @@ usage_text() {
echo "usage: $usage_app -d dir <resolver> <resolver args>"
}
+dir=
while getopts "d:" opt
do
case $opt in
@@ -32,7 +33,7 @@ resolver_name="$1"; shift
if [ -z "$dir" ]
then
- usage
+ usage "-d is required"
fi
if [ -e "$dir" ]