Use case instead of substring as /bin/sh does not support substring

This commit is contained in:
zosrothko 2017-11-08 15:12:58 +01:00
parent c63faa0cae
commit a0e6bf83a8

View File

@ -20,9 +20,11 @@ fi
osname=`uname -s | tr ' ' '_'`
osarch=`uname -m | tr ' ' '_'`
if [ ${osname:0:6} = "CYGWIN" ] ; then
osname="CYGWIN"
fi
case `uname` in
CYGWIN*) osname="CYGWIN"
;;
esac
if [ $osname = "Darwin" ] ; then
archpath=`dirname stage/tools/PocoDoc/bin/Darwin/*/PocoDoc`