nix/scripts/bin/has_command
2023-09-05 15:15:43 -05:00

5 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