Improvements
This commit is contained in:
@@ -1,9 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
|
||||
find . -mindepth 1 -type d -print0 | while IFS= read -r -d '' f
|
||||
do
|
||||
pushd "$f"
|
||||
~/images_resize.sh
|
||||
popd
|
||||
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user