aboutsummaryrefslogtreecommitdiffstats
path: root/whatbuild.sh
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2011-04-05 09:24:08 +0300
committerFilipp Lepalaan <filipp@mac.com>2011-04-05 09:24:08 +0300
commita1531de87130993a90e6086e9da85733a85e1dc1 (patch)
treecef95c360ba5cd4e9d22e989632589ef10f174e8 /whatbuild.sh
parent6dff30e12a9cf14c51675b35a519d1980a0f3ce1 (diff)
downloadmtk-a1531de87130993a90e6086e9da85733a85e1dc1.tar.gz
mtk-a1531de87130993a90e6086e9da85733a85e1dc1.tar.bz2
mtk-a1531de87130993a90e6086e9da85733a85e1dc1.zip
doc
Diffstat (limited to 'whatbuild.sh')
-rwxr-xr-xwhatbuild.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/whatbuild.sh b/whatbuild.sh
index 2a2b77e..8c95917 100755
--- a/whatbuild.sh
+++ b/whatbuild.sh
@@ -1,10 +1,12 @@
#! /usr/bin/env bash
# whatbuild.sh
# @description determine build number of OS on target volume
-# @package mtk
+# The most accurate place to read this would be inside BaseSystem.pkg, but
+# that's a hell of a lot of work and in my tests they seem to be the same.
# @author Filipp Lepalaan <filipp@mcare.fi>
+# @package mtk
-USAGE="$(basename $0) [volume=/]"
+USAGE="$(basename $0) [volume | /]"
VOLUME=${1:-"/"}
PLIST="${VOLUME}/System/Library/CoreServices/SystemVersion.plist"
@@ -19,4 +21,4 @@ if [[ ! -e "${PLIST}" ]]; then
fi
/usr/libexec/PlistBuddy -c 'Print ProductBuildVersion' "${PLIST}"
-exit 0 \ No newline at end of file
+exit 0