fix rm
This commit is contained in:
parent
7462fb0984
commit
5160db3212
1 changed files with 1 additions and 1 deletions
|
@ -21,4 +21,4 @@ scp -o StrictHostKeyChecking=no -v -i __TEMP_INPUT_KEY_FILE \
|
|||
echo "File transfer complete. Symlinking and purging old entries"
|
||||
ssh -o StrictHostKeyChecking=no -v -i __TEMP_INPUT_KEY_FILE \
|
||||
"${INPUT_USER}"@"${INPUT_HOST}" -p "${INPUT_PORT}" \
|
||||
-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 -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 | xargs rm -r"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue