15 lines
317 B
Bash
Executable File
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
|
|
|