aliases/curl: use _command_exists

This commit is contained in:
John D Pell
2021-09-11 18:02:24 -07:00
parent 6618457f9e
commit 88d66bbfca

View File

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