diff --git a/Casks/netclient.rb b/Casks/netclient.rb index 89e99c2..7ed86d8 100644 --- a/Casks/netclient.rb +++ b/Casks/netclient.rb @@ -28,6 +28,10 @@ sudo: true, } + uninstall script: { + executable: "#{staged_path}/blank.sh", + } + zap script: { executable: "#{staged_path}/uninstall.sh", sudo: true, diff --git a/Casks/scripts/blank.sh b/Casks/scripts/blank.sh new file mode 100644 index 0000000..d5cf093 --- /dev/null +++ b/Casks/scripts/blank.sh @@ -0,0 +1,2 @@ +#!/bin/sh +pwd \ No newline at end of file diff --git a/Casks/scripts/uninstall.sh b/Casks/scripts/uninstall.sh index bbbfcef..7ce5461 100644 --- a/Casks/scripts/uninstall.sh +++ b/Casks/scripts/uninstall.sh @@ -1,10 +1,10 @@ #!/bin/sh -export PATH=/usr/local/bin:/usr/homebrew/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin +export PATH=/usr/local/bin:/opt/homebrew/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin if [ -f /usr/local/bin/netclient ]; then netclient uninstall fi -if [ -f /usr/homebrew/bin/netclient ]; then +if [ -f /opt/homebrew/bin/netclient ]; then netclient uninstall fi if [ -f /var/log/com/gravitl.netclient.log ]; then