From a217112466c29c287ea1bd068905e1e5ac0aa1e7 Mon Sep 17 00:00:00 2001 From: Joel Maximilian Mai Date: Mon, 30 May 2022 08:33:41 +0200 Subject: [PATCH] [FEATURE] Add --delete option to rsync and enhance rsync output --- entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index b2a0f62..6054920 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -30,7 +30,7 @@ then # Password echo "> Deploying now" - sshpass -p $INPUT_PASS rsync --progress -a -v -e "ssh -p $INPUT_PORT" $GITHUB_WORKSPACE/$INPUT_LOCAL $INPUT_USER@$INPUT_HOST:$INPUT_REMOTE + sshpass -p $INPUT_PASS rsync -alveh --progress --stats --delete "ssh -p $INPUT_PORT" $GITHUB_WORKSPACE/$INPUT_LOCAL $INPUT_USER@$INPUT_HOST:$INPUT_REMOTE [[ -z "${INPUT_RUNAFTER}" ]] && { echo "> Executing commands after deployment" @@ -59,7 +59,7 @@ else # Private key } echo "> Deploying now" - sshpass -e rsync --progress -a -v -e "ssh -p $INPUT_PORT" $GITHUB_WORKSPACE/$INPUT_LOCAL $INPUT_USER@$INPUT_HOST:$INPUT_REMOTE + sshpass -e rsync -alveh --progress --stats --delete "ssh -p $INPUT_PORT" $GITHUB_WORKSPACE/$INPUT_LOCAL $INPUT_USER@$INPUT_HOST:$INPUT_REMOTE [[ -z "${INPUT_RUNAFTER}" ]] && { echo "> Executing commands after deployment"