fix 3 more bugs in these measly 150 lines of shell code. sheesh
This commit is contained in:
parent
551573570f
commit
53b0228077
1 changed files with 3 additions and 3 deletions
6
doc/special_remotes/external/example.sh
vendored
6
doc/special_remotes/external/example.sh
vendored
|
@ -23,8 +23,8 @@ getconfig () {
|
||||||
|
|
||||||
# Sets LOC to the location to use to store a key.
|
# Sets LOC to the location to use to store a key.
|
||||||
calclocation () {
|
calclocation () {
|
||||||
ask HASHDIR "$1"
|
ask DIRHASH "$1"
|
||||||
LOC="$mydirectory/$hashdir/$RET"
|
LOC="$mydirectory/$RET"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Asks for some value, and stores it in RET
|
# Asks for some value, and stores it in RET
|
||||||
|
@ -35,7 +35,7 @@ ask () {
|
||||||
# preserving all other whitespace
|
# preserving all other whitespace
|
||||||
case "${resp%% *}" in
|
case "${resp%% *}" in
|
||||||
VALUE)
|
VALUE)
|
||||||
RET="${resp#[! ]*[ ]}"
|
RET="$(echo "$resp" | sed 's/^VALUE \?//')"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
RET=""
|
RET=""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue