summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorOskar Nyberg <oskar@mullvad.net>2020-06-29 19:12:35 +0200
committerOskar Nyberg <oskar@mullvad.net>2020-06-29 19:12:35 +0200
commit44b9904d0570ceae0a0eb73f72e2580752859c5a (patch)
tree50a1688060d76411e038e22d24c4f4c81f71de99
parentc068d88fc50159e402a0af6e6f929dd70c05cee1 (diff)
downloadmullvadvpn-44b9904d0570ceae0a0eb73f72e2580752859c5a.tar.xz
mullvadvpn-44b9904d0570ceae0a0eb73f72e2580752859c5a.zip
Remove fish shell completions when uninstalling
-rwxr-xr-xdist-assets/uninstall_macos.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/dist-assets/uninstall_macos.sh b/dist-assets/uninstall_macos.sh
index 9cf33ec5de..3fbae00d2a 100755
--- a/dist-assets/uninstall_macos.sh
+++ b/dist-assets/uninstall_macos.sh
@@ -18,9 +18,15 @@ DAEMON_PLIST_PATH="/Library/LaunchDaemons/net.mullvad.daemon.plist"
sudo launchctl unload -w "$DAEMON_PLIST_PATH"
sudo rm -f "$DAEMON_PLIST_PATH"
-echo "Removing shell completion symlink ..."
+echo "Removing zsh shell completion symlink ..."
sudo rm -f /usr/local/share/zsh/site-functions/_mullvad
+FISH_COMPLETIONS_PATH="/usr/local/share/fish/vendor_completions.d/mullvad.fish"
+if [ -h "$FISH_COMPLETIONS_PATH" ]; then
+ echo "Removing fish shell completion symlink ..."
+ sudo rm -f "$FISH_COMPLETIONS_PATH"
+fi
+
echo "Removing CLI symlinks from /usr/local/bin/ ..."
sudo rm -f /usr/local/bin/mullvad /usr/local/bin/mullvad-problem-report