Skip to content

Commit

Permalink
Fix OS X version check
Browse files Browse the repository at this point in the history
  • Loading branch information
sstephenson committed Apr 4, 2011
1 parent 2e36cba commit d13e588
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ POW_BIN="$POW_ROOT/Current/bin"
if [ "$(uname -s)" != "Darwin" ]; then
echo "Sorry, Pow requires Mac OS X to run." >&2
exit 1
elif [ "$(expr "$(uname -r | cut -f 2 -d .)" \>= 7)" = 0 ]; then
elif [ "$(expr "$(sw_vers -productVersion | cut -f 2 -d .)" \>= 6)" = 0 ]; then
echo "Pow requires Mac OS X 10.6 or later." >&2
exit 1
fi
Expand Down

0 comments on commit d13e588

Please sign in to comment.