Use relative paths for scripts
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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" '{}' \;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user