diff --git a/archbox-desktop.bash b/archbox-desktop.bash index 1bf72aa..8eae06e 100755 --- a/archbox-desktop.bash +++ b/archbox-desktop.bash @@ -14,7 +14,7 @@ install_desktop(){ } checkdep(){ - which $1 >/dev/null 2>&1 || err "Install $1!" + hash $1 2>/dev/null || err "Install $1!" } err(){ diff --git a/archbox.bash b/archbox.bash index 95cd857..c7a1725 100755 --- a/archbox.bash +++ b/archbox.bash @@ -3,7 +3,7 @@ source /etc/archbox.conf checkdep(){ - which $1 >/dev/null 2>&1 || err "Install $1!" + hash $1 2>/dev/null || err "Install $1!" } copyresolv(){