Skip to content

Instantly share code, notes, and snippets.

@edenwaith
Created June 9, 2017 19:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edenwaith/bee8ee8a67d51ff61917f8725b49b3de to your computer and use it in GitHub Desktop.
Save edenwaith/bee8ee8a67d51ff61917f8725b49b3de to your computer and use it in GitHub Desktop.
#!/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