fix 3 more bugs in these measly 150 lines of shell code. sheesh

This commit is contained in:
Joey Hess 2013-12-27 14:04:51 -04:00
parent 551573570f
commit 53b0228077

View file

@ -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=""