summaryrefslogtreecommitdiff
path: root/doc/special_remotes/external/example.sh
diff options
context:
space:
mode:
Diffstat (limited to 'doc/special_remotes/external/example.sh')
-rwxr-xr-xdoc/special_remotes/external/example.sh8
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"