diff options
author | Joey Hess <joey@kitenet.net> | 2013-12-27 14:04:51 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2013-12-27 14:04:51 -0400 |
commit | ad6951f6e0d3918ecf097bbdf676a305f9a64ae8 (patch) | |
tree | 1e1a872564a2e635fa00d61e3eeed5e33e4def9c /doc/special_remotes | |
parent | 3e10589da2d8ca51111fa566ef6c0a243b95e1c8 (diff) |
fix 3 more bugs in these measly 150 lines of shell code. sheesh
Diffstat (limited to 'doc/special_remotes')
-rwxr-xr-x | doc/special_remotes/external/example.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/special_remotes/external/example.sh b/doc/special_remotes/external/example.sh index c74279e3f..2c35746d4 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="" |