Refactor
This commit is contained in:
@@ -28,10 +28,8 @@ if [ -n "$jpgs" ]; then
|
||||
fi
|
||||
|
||||
|
||||
for subd in *; do
|
||||
if [ -d "${subd}" ]; then
|
||||
pushd "${subd}"
|
||||
~/zip_images_recursive.sh "${directoryTree}"
|
||||
popd
|
||||
fi
|
||||
find . -mindepth 1 -maxdepth 1 -type d -print0 | while IFS= read -r -d '' subd; do
|
||||
pushd "${subd}"
|
||||
~/zip_images_recursive.sh "${directoryTree}"
|
||||
popd
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user