Made svg2png.bash match both "msys" and "MSYS"

This commit is contained in:
DrSlony
2015-05-03 01:04:50 +02:00
parent a858baa95c
commit 5f827fcc34

View File

@@ -48,7 +48,7 @@ do
fi
echo "#! /bin/bash" > $DIR_TMP/$FILE_NAME.bash
if [[ $OSTYPE == msys ]]; then
if [[ $OSTYPE == msys || $OSTYPE == MSYS ]]; then
awk -v s="$SVG" -v d="$DIR_OUT" -F, '{print "\"/c/Program Files (x86)/Inkscape/inkscape.exe\" " s " --export-png=" d "/" $1 " -" $2}' $DIR_IN/$FILE >> $DIR_TMP/$FILE_NAME.bash
else
awk -v s="$SVG" -v d="$DIR_OUT" -F, '{print "inkscape " s " --export-png=" d "/" $1 " -" $2}' $DIR_IN/$FILE >> $DIR_TMP/$FILE_NAME.bash