aliases/apt: use _command_exists

This commit is contained in:
John D Pell
2021-09-11 18:02:28 -07:00
parent 88d66bbfca
commit 0ad1af8306

View File

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