summaryrefslogtreecommitdiffstats
path: root/.scripts/tools/ifinstalled
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2019-01-12 21:56:13 -0500
committerLuke Smith <luke@lukesmith.xyz>2019-01-12 21:56:13 -0500
commitc0b24e15dcc48c955ec357eb357645443dfd4d6e (patch)
treec0b67534ce6f1418da772f683553129b8ebf6437 /.scripts/tools/ifinstalled
parent7d27809cb7f8accf32649c0f36bcecb23a5698a0 (diff)
downloadeibhear-c0b24e15dcc48c955ec357eb357645443dfd4d6e.tar.gz
eibhear-c0b24e15dcc48c955ec357eb357645443dfd4d6e.tar.zst
eibhear-c0b24e15dcc48c955ec357eb357645443dfd4d6e.zip
this will be handy >muh ui
Diffstat (limited to '.scripts/tools/ifinstalled')
-rwxr-xr-x.scripts/tools/ifinstalled3
1 files changed, 3 insertions, 0 deletions
diff --git a/.scripts/tools/ifinstalled b/.scripts/tools/ifinstalled
new file mode 100755
index 0000000..bdbcbc4
--- /dev/null
+++ b/.scripts/tools/ifinstalled
@@ -0,0 +1,3 @@
+#!/bin/sh
+# If $1 command is not available, error code and notify.
+command -v "$1" >/dev/null || { notify-send "$1 is not installed." && exit 1 ;}