From 54920103c2843f5a3620effbccaceaee7f6885c1 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Sat, 18 May 2019 00:07:32 -0400 Subject: scripts moved to ~/.local/bin --- .local/bin/tools/ifinstalled | 3 +++ 1 file changed, 3 insertions(+) create mode 100755 .local/bin/tools/ifinstalled (limited to '.local/bin/tools/ifinstalled') diff --git a/.local/bin/tools/ifinstalled b/.local/bin/tools/ifinstalled new file mode 100755 index 0000000..b0d23e5 --- /dev/null +++ b/.local/bin/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" "must be installed for this function." && exit 1 ;} -- cgit v1.3.1