diff options
| -rwxr-xr-x | photoalbum.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/photoalbum.sh b/photoalbum.sh index 66251e6..7580f23 100755 --- a/photoalbum.sh +++ b/photoalbum.sh @@ -129,12 +129,12 @@ find ./dist/ -type f -name \*.html -delete template index index ./dist generate +# Cleanup tarball from prev run if any +find ./dist/ -maxdepth 1 -type f -name \*.tar -delete + if [ "${INCLUDETARBALL}" = 'yes' ]; then echo Creating tarball mv "${INCOMING}" "${TARBALLNAME}" tar $TAROPTS -f "./dist/${TARBALLNAME}${TARBALLSUFFIX}" "${TARBALLNAME}" mv "${TARBALLNAME}" "${INCOMING}" -else - # Cleanup tarball from prev run if any - find ./dist/ -maxdepth 1 -type f -name \*.tar -delete fi |
