rename binaryExists to commandExists

This commit is contained in:
Nathaniel Landau
2021-10-22 16:08:42 -04:00
parent 49468383f2
commit 04dd6d76bb
3 changed files with 7 additions and 7 deletions

View File

@@ -1,6 +1,6 @@
# Functions for validating common use-cases
_binaryExists_() {
_commandExists_() {
# DESC:
# Check if a binary exists in the search PATH
# ARGS:
@@ -9,7 +9,7 @@ _binaryExists_() {
# 0 if true
# 1 if false
# USAGE:
# (_binaryExists_ ffmpeg ) && [SUCCESS] || [FAILURE]
# (_commandExists_ ffmpeg ) && [SUCCESS] || [FAILURE]
[[ $# == 0 ]] && fatal "Missing required argument to ${FUNCNAME[0]}"
if ! command -v "$1" >/dev/null 2>&1; then