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.
|
||||
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=""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue