summaryrefslogtreecommitdiffstatshomepage
path: root/bat/uninstall
diff options
context:
space:
mode:
authorToby Vincent <tobyv13@gmail.com>2021-06-26 15:29:40 -0500
committerToby Vincent <tobyv13@gmail.com>2021-06-26 15:29:40 -0500
commit4ebbfb0874c59ff0144ffee47c252b5eed167012 (patch)
treed12b687d4e975321e460ad3394cfea98a62b276e /bat/uninstall
parentf1385c8594e303e0cd11adfec81acbc701f85e86 (diff)
feat: added bat
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