Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Never run installing user's profile code as root
Replace all cases of ${USHELL} -l with /usr/bin/su commands. First use is commented explaining each steps purpose. Use printenv VAR | tail -n 1 to make sure that only the VAR's value is passed on. It is not uncommon for profiles to print information to stdout. Refactor the MANPATH logic to use su and the tr|grep idium to look at for a path. Delete all the logic for DISPLAY as its not required in any supported macOS version that MacPorts supports. Replace hardtab with spaces (cherry picked from commit 70495b1)
- Loading branch information
1 parent
07825b9
commit b757252
Showing
1 changed file
with
15 additions
and
21 deletions.
There are no files selected for viewing
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