3 ms·
nitpik: I prefer to define the $PATH of every command used in a bash script to prevent some possible shenanigans. sudo="/usr/bin/sudo" launhctl="/bin/launchct
by Maursault 6y ago
nitpik: I prefer to define the $PATH of every command used in a bash script to prevent some possible shenanigans.
sudo="/usr/bin/sudo"
launhctl="/bin/launchctl"
scutil="/usr/sbin/scutil"
nvram="/usr/sbin/nvram"
defaults="/usr/bin/defaults"
et cetera
- echohack5 6y agoSince APFS firmlinks these binaries you might be setting up some undesirable behavior, especially if a folder is set to read only. :) Most of the time you'll be ok though