Files
image_processing/images_resize_recursive.sh
T
2025-11-27 04:22:46 +00:00

15 lines
317 B
Bash
Executable File

#!/bin/bash
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
find . -mindepth 1 -type d -print0 | while IFS= read -r -d '' f
do
if pushd "$f" > /dev/null; then
"$SCRIPT_DIR/images_resize.sh"
popd > /dev/null
else
echo "Error: Failed to change to directory $f"
fi
done