added a debug for rotate code, and put quotes in the right spots so paths with spaces are covered - D'oh!

This commit is contained in:
2023-11-11 22:25:26 +11:00
parent 1005acb339
commit 0ed56d6a1a
2 changed files with 6 additions and 5 deletions

View File

@@ -1,9 +1,9 @@
#!/bin/sh
echo "start"
b=`basename $1`
b=`basename "$1"`
echo "b=$b"
mv $1 /tmp/$b
echo "mv $1 to /tmp/$b"
jpegtran -outfile $1 -rotate $2 /tmp/$b
mv "$1" "/tmp/$b"
echo "mv '$1' to /tmp/$b"
jpegtran -outfile "$1" -rotate "$2" "/tmp/$b"
echo "done jpegtran"