Turn pkg and cmd functions into bins to avoid PATH issues in subshells
This commit is contained in:
Executable
+7
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
for cmd in "$@"; do
|
||||
command -v "$cmd" &>/dev/null || return 1
|
||||
done
|
||||
|
||||
return 0
|
||||
Reference in New Issue
Block a user