From 95cf222e29dfce0f2c3e2771912aa007c64cd874 Mon Sep 17 00:00:00 2001 From: yo mama Date: Sat, 24 Jun 2017 20:21:21 -0700 Subject: added 3Drotate script --- bin/grid | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'bin/grid') diff --git a/bin/grid b/bin/grid index 01678ac..43762a2 100755 --- a/bin/grid +++ b/bin/grid @@ -186,13 +186,14 @@ fi # use mpc/cache to hold input image temporarily in memory tmpA="$dir/profile_$$.mpc" tmpB="$dir/profile_$$.cache" -trap "rm -f $tmpA $tmpB; exit 0" 0 -trap "rm -f $tmpA $tmpB; exit 1" 1 2 3 15 +#trap "rm -f $tmpA $tmpB; exit 0" 0 +#trap "rm -f $tmpA $tmpB; exit 1" 1 2 3 15 # -if convert -quiet -regard-warnings "$infile" +repage "$tmpA" - then +convert "$infile" +repage "$tmpA" +if [ $? -eq 0 ]; + then : 'do nothing - continue processing below' else errMsg "--- FILE $infile DOES NOT EXIST OR IS NOT AN ORDINARY FILE, NOT READABLE OR HAS ZERO SIZE ---" -- cgit v1.2.3-70-g09d2