implement PREPARE-FAILURE for Tobias

This commit is contained in:
Joey Hess 2013-12-29 13:39:25 -04:00
parent 99413318ef
commit 054e4f17e2
4 changed files with 45 additions and 14 deletions

View file

@ -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"