index
:
chadscripts
master
My scripts.
filip.rabiega@gmail.com
summary
refs
log
tree
commit
diff
log msg
author
committer
range
path:
root
/
inpath
diff options
context:
1
2
3
4
5
6
7
8
9
10
15
20
25
30
35
40
space:
include
ignore
mode:
unified
ssdiff
stat only
Diffstat
(limited to 'inpath')
-rwxr-xr-x
inpath
1
1 files changed, 1 insertions, 0 deletions
diff --git a/inpath b/inpath
index 71bfeb9..177bb3b 100755
--- a/
inpath
+++ b/
inpath
@@ -1,4 +1,5 @@
#!/bin/sh
+# Check if a command is in PATH
in_path() {
cmd=$1 path=$2 res=1