From 7661855869820b8d3e5ce0558098f0387905cc44 Mon Sep 17 00:00:00 2001 From: Santiago Lo Coco Date: Wed, 10 Apr 2024 12:29:27 +0200 Subject: [PATCH] Revert "Fix PATH for homebrew" This reverts commit 8e8dcf8dd45b37ccf084a971079740a67d349387. --- cbattery | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cbattery b/cbattery index 75fe662..9d41308 100755 --- a/cbattery +++ b/cbattery @@ -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