From 5cb0bc94c635e45f01675594c563ab0d3dfbd5f0 Mon Sep 17 00:00:00 2001 From: Tyler Morgan Date: Tue, 18 Jun 2019 15:12:36 -0400 Subject: [PATCH] Fixed few bugs --- Tools/removeLoanPeriod.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Tools/removeLoanPeriod.sh b/Tools/removeLoanPeriod.sh index d689ce1..eee5889 100755 --- a/Tools/removeLoanPeriod.sh +++ b/Tools/removeLoanPeriod.sh @@ -5,9 +5,14 @@ # This script will reset the loan period that has been set on the machine. ##################### -$find="/usr/bin/find" +find="/usr/bin/find" +killall="/usr/bin/killall" -$find /Users/ -name "com.github.cybertunnel.LoanShark.plist" -delete +app_name="LoanShark" + +$find /Users/ -name "com.github.cybertunnel.LoanShark.plist" -delete 2> /dev/null + +$killall "${app_name}" exit 0