Don't give an empty template flag argument if there is no flag; trac #4014
authorIan Lynagh <igloo@earth.li>
Tue, 27 Apr 2010 15:45:46 +0000 (15:45 +0000)
committerIan Lynagh <igloo@earth.li>
Tue, 27 Apr 2010 15:45:46 +0000 (15:45 +0000)
hsc2hs.wrapper

index 5b05640..51f4d8f 100644 (file)
@@ -18,4 +18,4 @@ for arg do
     esac
 done
 
-exec "$executablename" "$tflag" $HSC2HS_EXTRA ${1+"$@"} "$Iflag"
+exec "$executablename" ${tflag:+"$tflag"} $HSC2HS_EXTRA ${1+"$@"} "$Iflag"