nix/modules/home-manager/scripts/common/bin/has_command
2023-10-05 13:43:28 -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