Use relative paths for scripts

This commit is contained in:
2025-11-27 02:42:20 +00:00
parent c4528f1319
commit 52572ef7ee
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -51,7 +51,8 @@ for INFILE in "$@"; do
cleanup_temp
continue
fi
~/images_resize.sh
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
"$SCRIPT_DIR/images_resize.sh"
popd > /dev/null
# Zip the files with no compression
+2 -1
View File
@@ -1,3 +1,4 @@
#!/bin/bash
find . -iname '*.zip' -exec ~/zip_images_resize.sh '{}' \;
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
find . -iname '*.zip' -exec "$SCRIPT_DIR/zip_images_resize.sh" '{}' \;