nix/bin/has_command
2023-09-05 13:52:52 -05:00

4 lines
116 B
Bash
Executable file

#!/usr/bin/env sh
[ "$#" -lt 1 ] && { echo "No arguments provided" >&2 ; exit 1; }
command -v "$1" >/dev/null 2>&1