Fix PATH for homebrew

This commit is contained in:
Santiago Lo Coco 2024-04-10 12:18:00 +02:00
parent 324c4ed063
commit 8e8dcf8dd4
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 "$(realpath "$0")")"
script_dir="$(dirname "$(readlink -f "$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