mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Turn pkg and cmd functions into bins to avoid PATH issues in subshells
This commit is contained in:
7
bin/omarchy-cmd-present
Executable file
7
bin/omarchy-cmd-present
Executable file
@@ -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