summaryrefslogtreecommitdiffstatshomepage
path: root/bat/uninstall
diff options
context:
space:
mode:
Diffstat (limited to 'bat/uninstall')
-rwxr-xr-xbat/uninstall9
1 files changed, 9 insertions, 0 deletions
diff --git a/bat/uninstall b/bat/uninstall
new file mode 100755
index 0000000..c1262cf
--- /dev/null
+++ b/bat/uninstall
@@ -0,0 +1,9 @@
+#!/usr/bin/env bash
+
+app=$1
+
+if [ "$(which $app)" ]; then
+ current_version=$($app --version | grep -oE "[0-9\.]+")
+ echo "$app: uninstalling $current_version"
+ sudo apt remove $app
+fi \ No newline at end of file