aliases/curl: use `_command_exists`
parent
6618457f9e
commit
88d66bbfca
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue