This repository was archived by the owner on Aug 23, 2018. It is now read-only.
This repository was archived by the owner on Aug 23, 2018. It is now read-only.
Open
Description
Problem
Many users of the homebrew package manager set the permissions of /usr/local
and such so sudo
is not required. However, the Elm-Platform installer, e.g. Elm-Platform-0.17.1.pkg
, requires the user to type in their password for administrative access regardless if it already has permission or not. I don't think this is a good security policy.
Solution
The installer checks if it has permission to the necessary subdirectories of /usr/local
. If it does, install without elevating privileges. If it doesn't, prompt user for administrative access, elevate privileges, and install as root.