Clean script for creation of archives
This commit is contained in:
parent
d5a4c22ff5
commit
c16b3ab59f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user