summaryrefslogtreecommitdiff
path: root/dot_local/lib/sh/hascmd
diff options
context:
space:
mode:
Diffstat (limited to 'dot_local/lib/sh/hascmd')
-rw-r--r--dot_local/lib/sh/hascmd1
1 files changed, 1 insertions, 0 deletions
diff --git a/dot_local/lib/sh/hascmd b/dot_local/lib/sh/hascmd
new file mode 100644
index 0000000..994bc71
--- /dev/null
+++ b/dot_local/lib/sh/hascmd
@@ -0,0 +1 @@
+test -x "$(command -v $1)"