1.1 --- a/vcs-backup.sh Fri Apr 19 17:52:37 2019 +0200
1.2 +++ b/vcs-backup.sh Fri Apr 19 18:56:46 2019 +0200
1.3 @@ -155,6 +155,10 @@
1.4 PUBLIC_FUNCTION_PREFIX="vcs_backup_public_";
1.5 if type -t "$PUBLIC_FUNCTION_PREFIX$1" > /dev/null; then
1.6 "$PUBLIC_FUNCTION_PREFIX${@:1}";
1.7 +elif [[ $(basename $0) == "vcs-backup-clone-private-hg" ]]; then "${PUBLIC_FUNCTION_PREFIX}clientSubmitBackupRequest" hg "$1" private clone;
1.8 +elif [[ $(basename $0) == "vcs-backup-clone-private-git" ]]; then "${PUBLIC_FUNCTION_PREFIX}clientSubmitBackupRequest" git "$1" private clone;
1.9 +elif [[ $(basename $0) == "vcs-backup-clone-public-hg" ]]; then "${PUBLIC_FUNCTION_PREFIX}clientSubmitBackupRequest" hg "$1" public clone;
1.10 +elif [[ $(basename $0) == "vcs-backup-clone-public-git" ]]; then "${PUBLIC_FUNCTION_PREFIX}clientSubmitBackupRequest" git "$1" public clone;
1.11 else
1.12 echo "Unsupported sub-command: $1" >&2
1.13 echo "Available sub-commands:" >&2