From c0b24e15dcc48c955ec357eb357645443dfd4d6e Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Sat, 12 Jan 2019 21:56:13 -0500 Subject: [PATCH] this will be handy >muh ui --- .scripts/tools/ifinstalled | 3 +++ 1 file changed, 3 insertions(+) create mode 100755 .scripts/tools/ifinstalled 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 ;}