-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathuninstall.sh
More file actions
27 lines (21 loc) · 756 Bytes
/
uninstall.sh
File metadata and controls
27 lines (21 loc) · 756 Bytes
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
#!/bin/bash
# Uninstall script for command_tracker
echo "🔧 Uninstalling Command Tracker..."
# Remove symbolic link
if [ -L /usr/local/bin/showcmm ]; then
sudo rm /usr/local/bin/showcmm
echo "✅ Removed 'showcmm' command from /usr/local/bin"
else
echo "⚠️ 'showcmm' symlink not found in /usr/local/bin"
fi
# Optionally, ask to remove the cloned project directory
read -p "Do you want to remove the command_tracker project folder? (y/N): " del_proj
if [[ "$del_proj" == "y" || "$del_proj" == "Y" ]]; then
proj_dir=$(dirname "$(realpath "$0")")
echo "Deleting $proj_dir..."
rm -rf "$proj_dir"
echo "✅ Project folder removed."
else
echo "Skipping project folder removal."
fi
echo "🎉 Uninstallation complete."