X-Git-Url: http://git.grml.org/?p=grml-scripts.git;a=blobdiff_plain;f=usr_bin%2Fiimage;h=77a74ab4e0be3d76259d4919b4e49ac1dbb02944;hp=14ef84f0c95f9aa46b8549269db8a62ac0801325;hb=24c1bd1dc1799b4124782c9f66267d2c4f974bb7;hpb=e720deae78f1eda5e6f62629606c194f16796762 diff --git a/usr_bin/iimage b/usr_bin/iimage index 14ef84f..77a74ab 100755 --- a/usr_bin/iimage +++ b/usr_bin/iimage @@ -49,7 +49,7 @@ # ###################################################################### -SVN_ID="$Id: iimage 36 2006-01-14 20:19:46Z ronsc $" +SVN_ID="$Id: iimage 37 2006-08-22 13:50:17Z ronsc $" # old templates might still use CVS_VERSION CVS_VERSION="$SVN_ID" @@ -436,7 +436,7 @@ function rotate_image() { | grep Orientation | cut -d":" -f 2 | cut -d"," -f 1 ` elif [ $JHEAD ]; then ORIENTATION=`jhead -v "$FILE" 2>/dev/null \ - | grep "Orientation =" | cut -d '=' -f 2 | cut -c 2 ` + | grep "Orientation =" | head -1 | cut -d '=' -f 2 | cut -c 2 ` fi ORIENTATION=`echo $ORIENTATION`