From 2df58bcc75e80b733b3c6bbcab4ae21dd8d7f0e0 Mon Sep 17 00:00:00 2001 From: aysiu Date: Sat, 4 Jan 2020 21:24:22 -0800 Subject: [PATCH] Remove redundant .plist extension launch_agent_plist_name is already com.erikng.nudge.plist so ${launch_agent_plist_name}.plist would be com.erikng.nudge.plist.plist --- scripts/postinstall | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/postinstall b/scripts/postinstall index c4b7d73..0129557 100755 --- a/scripts/postinstall +++ b/scripts/postinstall @@ -23,7 +23,7 @@ launch_agent_base_path='Library/LaunchAgents/' # Load agent if installing to a running system if [[ $3 == "/" ]] ; then # Fail the install if the admin forgets to change their paths and they don't exist. - if [ ! -e "$3/${launch_agent_base_path}${launch_agent_plist_name}.plist" ]; then + if [ ! -e "$3/${launch_agent_base_path}${launch_agent_plist_name}" ]; then echo "LaunchAgent missing, exiting" exit 1 fi