-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathuninstall.sh
36 lines (30 loc) · 1009 Bytes
/
uninstall.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/usr/bin/env bash
# Paths
INSTALL_DIR="/usr/local/lib/keyvis"
EXECUTABLE="/usr/local/bin/keyvis"
echo "Starting KeyVis uninstallation..."
uninstalled=false
# Check if the executable exists and remove it
if [ -f "$EXECUTABLE" ]; then
echo "Removing KeyVis executable from $EXECUTABLE..."
sudo rm -f "$EXECUTABLE"
echo "Executable removed successfully."
uninstalled=true
else
echo "KeyVis executable not found at $EXECUTABLE. Skipping removal."
fi
# Check if the application directory exists and remove it
if [ -d "$INSTALL_DIR" ]; then
echo "Removing KeyVis application files from $INSTALL_DIR..."
sudo rm -rf "$INSTALL_DIR"
echo "Application files removed successfully."
uninstalled=true
else
echo "KeyVis directory not found at $INSTALL_DIR. Skipping removal."
fi
# Final message if something was uninstalled
if [ "$uninstalled" = true ]; then
echo "KeyVis has been uninstalled successfully."
else
echo "Nothing to uninstall. KeyVis was not found."
fi