fix: gp-stop-start

This commit is contained in:
MrRaph_
2024-06-17 19:17:25 +02:00
parent 30852e57df
commit 97033b478d

View File

@@ -15,24 +15,19 @@
# @raycast.author MrRaph_ # @raycast.author MrRaph_
# @raycast.authorURL https://git.mrraph.fr # @raycast.authorURL https://git.mrraph.fr
message="Error"
case $1 in case ${1} in
start) start)
echo "Starting GlobalProtect..."
launchctl load /Library/LaunchAgents/com.paloaltonetworks.gp.pangpa.plist launchctl load /Library/LaunchAgents/com.paloaltonetworks.gp.pangpa.plist
launchctl load /Library/LaunchAgents/com.paloaltonetworks.gp.pangps.plist launchctl load /Library/LaunchAgents/com.paloaltonetworks.gp.pangps.plist
echo "GP Started !" message="GP Started !"
;; ;;
stop) stop)
echo "Stopping GlobalProtect..."
launchctl remove com.paloaltonetworks.gp.pangps launchctl remove com.paloaltonetworks.gp.pangps
launchctl remove com.paloaltonetworks.gp.pangpa launchctl remove com.paloaltonetworks.gp.pangpa
echo "GP Stopped !" message="GP Stopped !"
;;
*)
echo "'$1' is not a valid verb."
echo "Usage: $0 {start|stop}"
exit 2
;; ;;
esac esac
;;
echo $message