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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user