aliases/apt: use `_command_exists`

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

View File

@ -1,4 +1,4 @@
#!/bin/bash # shellcheck shell=bash
# #
# -binaryanomaly # -binaryanomaly
@ -8,7 +8,8 @@ about-alias 'Apt and dpkg aliases for Ubuntu and Debian distros.'
# set apt aliases # set apt aliases
function _set_pkg_aliases() function _set_pkg_aliases()
{ {
if [ -x $(which apt) ]; then if _command_exists apt
then
alias apts='apt-cache search' alias apts='apt-cache search'
alias aptshow='apt-cache show' alias aptshow='apt-cache show'
alias aptinst='sudo apt-get install -V' alias aptinst='sudo apt-get install -V'