feat(scripts): have is now x-have script

This commit is contained in:
2023-09-29 14:51:20 +03:00
parent 3d753fe08c
commit 56ae0e1e1c
13 changed files with 23 additions and 13 deletions

10
local/bin/x-have Executable file
View File

@@ -0,0 +1,10 @@
#!/usr/bin/env bash
# Returns which status
which -s "$1" >&/dev/null
if [ $? -eq 0 ]; then
echo 0
else
echo 1
fi