11#! /bin/sh
22
33# install.sh
4- # ComboJack-Swift
4+ # MicFix
55#
66# Created by WingLim on 2021/5/15.
77#
@@ -10,8 +10,8 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
1010
1111# Clean up old installs
1212function cleanUpOldInstall() {
13- sudo launchctl unload /Library/LaunchAgents/com.WingLim.ComboJack-Swift .plist
14- sudo rm -rf /Library/LaunchAgents/com.WingLim.ComboJack-Swift .plist
13+ sudo launchctl unload /Library/LaunchAgents/com.WingLim.MicFix .plist
14+ sudo rm -rf /Library/LaunchAgents/com.WingLim.MicFix .plist
1515}
1616
1717# Function that exits with an error code and message
@@ -30,15 +30,15 @@ echo "Removing old installs"
3030cleanUpOldInstall 2> /dev/null
3131
3232echo " Copying new files"
33- sudo cp " $DIR /ComboJack-Swift " /usr/local/bin/ComboJack-Swift || abort " Failed to copy ComboJack-Swift "
34- sudo cp " $DIR /com.WingLim.ComboJack-Swift .plist" /Library/LaunchAgents || abort " Failed to copy launchd plist file"
33+ sudo cp " $DIR /MicFix " /usr/local/bin/MicFix || abort " Failed to copy MicFix "
34+ sudo cp " $DIR /com.WingLim.MicFix .plist" /Library/LaunchAgents || abort " Failed to copy launchd plist file"
3535
3636echo " Setting permissions"
37- sudo chmod 755 /usr/local/bin/ComboJack-Swift
38- sudo chmod 644 /Library/LaunchAgents/com.WingLim.ComboJack-Swift .plist
37+ sudo chmod 755 /usr/local/bin/MicFix
38+ sudo chmod 644 /Library/LaunchAgents/com.WingLim.MicFix .plist
3939
40- sudo chown root:wheel /usr/local/bin/ComboJack-Swift
41- sudo chown root:wheel /Library/LaunchAgents/com.WingLim.ComboJack-Swift .plist
40+ sudo chown root:wheel /usr/local/bin/MicFix
41+ sudo chown root:wheel /Library/LaunchAgents/com.WingLim.MicFix .plist
4242
4343echo " Loading launch daemon"
44- sudo launchctl load /Library/LaunchAgents/com.WingLim.ComboJack-Swift .plist
44+ sudo launchctl load /Library/LaunchAgents/com.WingLim.MicFix .plist
0 commit comments