${@:+$@} -> ${@}

This commit is contained in:
NorseGaud 2022-03-08 18:30:29 -05:00
parent 1ab8ea96b2
commit 66cf4f3a54
No known key found for this signature in database
GPG key ID: FC3D2A556A94E721
2 changed files with 6 additions and 6 deletions

View file

@ -52,7 +52,7 @@ function __log_success
function __in_path
{
command -v "${@:+$@}" &>/dev/null && return 0 ; return 1 ;
command -v "${@}" &>/dev/null && return 0 ; return 1 ;
}
function _eclint
@ -156,4 +156,4 @@ function __main
esac
}
__main "${@:+$@}" || exit ${?}
__main "${@}" || exit ${?}