summaryrefslogtreecommitdiff
path: root/doc/special_remotes/external
diff options
context:
space:
mode:
Diffstat (limited to 'doc/special_remotes/external')
-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=""