summaryrefslogtreecommitdiff
path: root/doc/special_remotes
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-12-27 14:04:51 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-12-27 14:04:51 -0400
commitad6951f6e0d3918ecf097bbdf676a305f9a64ae8 (patch)
tree1e1a872564a2e635fa00d61e3eeed5e33e4def9c /doc/special_remotes
parent3e10589da2d8ca51111fa566ef6c0a243b95e1c8 (diff)
fix 3 more bugs in these measly 150 lines of shell code. sheesh
Diffstat (limited to 'doc/special_remotes')
-rwxr-xr-xdoc/special_remotes/external/example.sh6
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=""