Created
June 9, 2017 19:14
-
-
Save edenwaith/bee8ee8a67d51ff61917f8725b49b3de to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
VER1=2.6.33.2 | |
VER2=2.6.38 | |
OSVERSION=`sw_vers -productVersion` | |
echo "Current OS Version: $OSVERSION" | |
echo "Arg 2 : $# $0 $1 $2" | |
if [[ $VER1 > $VER2 ]]; then | |
echo "$VER1 is greater than $VER2" | |
elif [[ $VER1 == $VER2 ]]; then | |
echo "$VER1 is equal to $VER2" | |
else | |
echo "$VER1 is less than $VER2" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment