diff --git a/entrypoint.sh b/entrypoint.sh index fc5543f..74a57d2 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -18,4 +18,4 @@ echo "Symlinking, purging old" echo "Running on ssh: ln -s ${INPUT_REMOTE}/${COMMIT_SHA} ${INPUT_REMOTE}/latest" ssh -P "${INPUT_PORT}" "${INPUT_USER}"@"${INPUT_HOST}" \ - -C "ln -s ${INPUT_REMOTE}/${COMMIT_SHA} ${INPUT_REMOTE}/latest && find . -mindepth 1 -maxdepth 1 -type d -not -path './latest' | tail -n +5 | rm -r" + -C "ln -s ${INPUT_REMOTE}/${COMMIT_SHA} ${INPUT_REMOTE}/latest && find ${INPUT_REMOTE} -mindepth 1 -maxdepth 1 -type d -not -path './latest' | tail -n +5 > rm_result.txt"