#11742 use Inkscape 0.92.x converter from Resources of application bundle if detected - corrected shell syntax

This commit is contained in:
Stephan Witt 2020-05-19 08:54:57 +02:00
parent 813cd1765c
commit dfb33eb569

View File

@ -52,7 +52,7 @@ startinkscape() {
# at first try the well known location for Inkscape 1.0
# but check for Inkscape 0.92.x too and skip this if it's in Resources
RESDIR="/Applications/Inkscape.app/Contents/MacOS"
if [ !f "/Applications/Inkscape.app/Contents/Resources/bin/inkscape" -a -f "${RESDIR}"/inkscape -a -x "${RESDIR}"/inkscape ]; then
if [ ! -f "/Applications/Inkscape.app/Contents/Resources/bin/inkscape" -a -f "${RESDIR}"/inkscape -a -x "${RESDIR}"/inkscape ]; then
startinkscape "${RESDIR}"/inkscape "$@"
exit 0
fi