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.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/special_remotes/external/example.sh b/doc/special_remotes/external/example.sh
index 81b4b6806..c7fb78c02 100755
--- a/doc/special_remotes/external/example.sh
+++ b/doc/special_remotes/external/example.sh
@@ -264,6 +264,15 @@ while read line; do
key="$2"
doremove "$key" "$exportlocation"
;;
+ REMOVEEXPORTDIRECTORY)
+ shift 1
+ dir="$@"
+ if [ ! -d "$dir" ] || rm -rf "$mydirectory/$dir"; then
+ echo REMOVEEXPORTDIRECTORY-SUCCESS
+ else
+ echo REMOVEEXPORTDIRECTORY-FAILURE
+ fi
+ ;;
RENAMEEXPORT)
key="$2"
shift 2