Clean script for creation of archives

This commit is contained in:
Christian Wolf 2024-11-06 11:20:06 +01:00
parent d5a4c22ff5
commit c16b3ab59f

View File

@ -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