From 53b022807738e559e085300c5a2007b914c575bd Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Fri, 27 Dec 2013 14:04:51 -0400 Subject: [PATCH] fix 3 more bugs in these measly 150 lines of shell code. sheesh --- doc/special_remotes/external/example.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/special_remotes/external/example.sh b/doc/special_remotes/external/example.sh index c74279e3fc..2c35746d47 100755 --- a/doc/special_remotes/external/example.sh +++ b/doc/special_remotes/external/example.sh @@ -23,8 +23,8 @@ getconfig () { # Sets LOC to the location to use to store a key. calclocation () { - ask HASHDIR "$1" - LOC="$mydirectory/$hashdir/$RET" + ask DIRHASH "$1" + LOC="$mydirectory/$RET" } # Asks for some value, and stores it in RET @@ -35,7 +35,7 @@ ask () { # preserving all other whitespace case "${resp%% *}" in VALUE) - RET="${resp#[! ]*[ ]}" + RET="$(echo "$resp" | sed 's/^VALUE \?//')" ;; *) RET=""