[deploy_cp] GIT_DIR side cleaning now working

This commit is contained in:
ayakael 2018-04-07 21:38:30 -04:00
parent 87d8f8e167
commit 7ae4f59c5d
No known key found for this signature in database
GPG key ID: 575626A4AE5F4026

View file

@ -41,6 +41,6 @@ deploy_cp() {
## Cleans GIT_DIR of split IMAGEIDs
_msg EXEC "Cleaning ${IMAGEID}"
find ${GIT_DIR}/ -name "${IMAGEID}-" -exec rm '{}' \;
find ${GIT_DIR}/ \( -name "${IMAGEID}-*" -or -name "split-track*" \) -exec rm '{}' \;
[[ $? -eq 0 ]] && _msg OK || _msg WARN
}