diff --git a/scripts/create-archives.sh b/scripts/create-archives.sh index 315c1b9..3035ec8 100755 --- a/scripts/create-archives.sh +++ b/scripts/create-archives.sh @@ -19,6 +19,11 @@ do echo "Creating archive for $dir" cd "$dir" - # find -type f -iname "*.jpg" | grep -v '/thumbnail.jpg$' | zip -u album.zip -@ + update= + if [ -f album.zip ] + then + update=-u + fi + find -type f -iname "*.jpg" | grep -v '/thumbnail.jpg$' | zip $update album.zip -@ ) done