summaryrefslogtreecommitdiff
path: root/build/mac/installer-resources/InstallationCheck
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2014-10-26 12:33:50 +0400
committerIgor Pashev <pashev.igor@gmail.com>2014-10-26 12:33:50 +0400
commit47e6e7c84f008a53061e661f31ae96629bc694ef (patch)
tree648a07f3b5b9d67ce19b0fd72e8caa1175c98f1a /build/mac/installer-resources/InstallationCheck
downloadpcp-debian.tar.gz
Debian 3.9.10debian/3.9.10debian
Diffstat (limited to 'build/mac/installer-resources/InstallationCheck')
-rwxr-xr-xbuild/mac/installer-resources/InstallationCheck11
1 files changed, 11 insertions, 0 deletions
diff --git a/build/mac/installer-resources/InstallationCheck b/build/mac/installer-resources/InstallationCheck
new file mode 100755
index 0000000..b8d4cbc
--- /dev/null
+++ b/build/mac/installer-resources/InstallationCheck
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+OS_VER=`/usr/bin/uname -r`
+OS_MAJ=`/usr/bin/uname -r | cut -f 1 -d .`
+
+if [ "$OS_VER" = "6.8" -o "$OS_VER" = "6.8.5" -o "$OS_MAJ" = "7" ]; then
+ exit 0
+fi
+
+# Refuse to install, giving standard error message
+exit 96