Revert "Fix PATH for homebrew"

This reverts commit 8e8dcf8dd4.
This commit is contained in:
Santiago Lo Coco 2024-04-10 12:29:27 +02:00
parent 8e8dcf8dd4
commit 7661855869
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ install_visudo_file() {
install_launch_daemon() {
launch_daemon=/Library/LaunchDaemons/cbattery.plist
script_dir="$(dirname "$(readlink -f "$0")")"
script_dir="$(dirname "$(realpath "$0")")"
share_plist="$SHARE_DIR/cbattery.plist"
if ! grep -q "$script_dir" "$share_plist"; then
sed "s:/usr/local/bin:$script_dir:g" "$share_plist" | sudo tee "$share_plist" > /dev/null