aliases/curl: use _command_exists
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user