pandoc/osx-resources/InstallationCheck
John MacFarlane e460ab2894 osx InstallationCheck script: use full path for sysctl.
Thanks to jonahbull for the suggestion.  Closes #580.
2013-02-24 14:05:53 -08:00

14 lines
221 B
Bash
Executable file

#!/bin/sh
cputype=`/usr/sbin/sysctl -n hw.cputype`
sixtyfourbit=`/usr/sbin/sysctl -n hw.cpu64bit_capable`
if [ "x$cputype" != "x7" ] # x86
then
exit 112
fi
if [ "x$sixtyfourbit" != "x1" ] # 64 bit
then
exit 113
fi