From 619006f67ed6c18e705d2e8a50349fae96f86c3b Mon Sep 17 00:00:00 2001 From: jackz Date: Wed, 11 Dec 2024 20:50:57 -0600 Subject: [PATCH] Update entrypoint.sh --- entrypoint.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index a25fe76..588ac5f 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -13,5 +13,6 @@ fi scp -o StrictHostKeyChecking=no -v -i __TEMP_INPUT_KEY_FILE \ -P "${INPUT_PORT}" $INPUT_OPTIONS -r ${INPUT_SRC} "${INPUT_USER}"@"${INPUT_HOST}":"${INPUT_REMOTE}/${COMMIT_SHA}" 2>/dev/null -echo File transfer complete, symlinking & purging old -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" +echo "File transfer complete, symlinking & purging old" +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"