Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Detect Mac OS X 10.6+, where the original problem was never exhibited…
… (see the console output from Installer when perform an unprivileged installation).
  • Loading branch information
nevali committed Aug 23, 2009
1 parent 8b30906 commit 6226733
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
Expand Up @@ -4,6 +4,15 @@ SCRIPT_WD=`pwd`
DIR=/Library/Receipts/clicktoflash-nonadmin.pkg/
GROUPS=`id -Gn $USER`

case `uname -r` in
[89].*)
true
;;
*)
echo "Running on Snow Leopard or newer, no need to care."
exit 0
esac

if [ -d $DIR ]; then
echo "There is a receipt, no admin privs required for installer pkg."
exit 0
Expand Down
Expand Up @@ -4,6 +4,15 @@ SCRIPT_WD=`pwd`
DIR=/Library/Receipts/clicktoflash-nonadmin.pkg/
GROUPS=`id -Gn $USER`

case `uname -r` in
[89].*)
true
;;
*)
echo "Running on Snow Leopard or newer, no need to care."
exit 1
esac

if [ -d $DIR ]; then
echo "There is a receipt, no admin privs required for installer pkg."
exit 1
Expand Down

0 comments on commit 6226733

Please sign in to comment.