mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-02-05 07:48:58 +00:00
feat(scripts): have is now x-have script
This commit is contained in:
10
local/bin/x-have
Executable file
10
local/bin/x-have
Executable 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
|
||||
|
||||
Reference in New Issue
Block a user