diff options
author | Joey Hess <joey@kitenet.net> | 2013-12-29 13:39:25 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2013-12-29 13:39:25 -0400 |
commit | efcba8f9fc8b9322f3c652f4d84ca4f345d45116 (patch) | |
tree | b877703221b4704cd09eae59a6a927b745c2714a /doc/special_remotes | |
parent | a451dcfb3f44a635027b666c5e8757050dc5b123 (diff) |
implement PREPARE-FAILURE for Tobias
Diffstat (limited to 'doc/special_remotes')
-rwxr-xr-x | doc/special_remotes/external/example.sh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/doc/special_remotes/external/example.sh b/doc/special_remotes/external/example.sh index 428e2ecb9..5152ccc28 100755 --- a/doc/special_remotes/external/example.sh +++ b/doc/special_remotes/external/example.sh @@ -112,10 +112,14 @@ while read line; do # Use GETCONFIG to get configuration settings, # and do anything needed to get ready for using the # special remote here. + getcreds getconfig directory mydirectory="$RET" - getcreds - echo PREPARE-SUCCESS + if [ -d "$mydirectory" ]; then + echo PREPARE-SUCCESS + else + echo PREPARE-FAILURE "$mydirectory not found" + fi ;; TRANSFER) key="$3" |