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