Allow for more control on what to archive
This commit is contained in:
@@ -13,12 +13,12 @@ then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
find content/albums -type d | while read dir
|
||||
find content/albums -type d "$@" | while read dir
|
||||
do
|
||||
(
|
||||
echo "Creating archive for $dir"
|
||||
cd "$dir"
|
||||
|
||||
find -type f -iname "*.jpg" | grep -v '/thumbnail.jpg$' | zip -u album.zip -@
|
||||
# find -type f -iname "*.jpg" | grep -v '/thumbnail.jpg$' | zip -u album.zip -@
|
||||
)
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user