aliases/curl: use `_command_exists`

pull/1938/head
John D Pell 2021-09-11 18:02:24 -07:00
parent 6618457f9e
commit 88d66bbfca
1 changed files with 2 additions and 1 deletions

View File

@ -6,7 +6,8 @@ about-alias 'Curl aliases for convenience.'
# set apt aliases # set apt aliases
function _set_pkg_aliases() function _set_pkg_aliases()
{ {
if [ -x $(which curl) ]; then if _command_exists curl
then
# follow redirects # follow redirects
alias cl='curl -L' alias cl='curl -L'
# follow redirects, download as original name # follow redirects, download as original name