summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow (mars.fritz.box) <paul@buetow.org>2013-12-22 17:45:50 +0100
committerPaul Buetow (mars.fritz.box) <paul@buetow.org>2013-12-22 17:45:50 +0100
commit42a68c4c4d2a8bff01070e2ab4d5239e62c9b54f (patch)
tree2a1ccd1fbcfb3beb2b9ba80ce0963b781322ca4e
parent9c1345c9c6e27c97583579b609001f745a4909db (diff)
bugfix
-rwxr-xr-xphotoalbum.sh6
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