Use hash for command checking.

This commit is contained in:
lemniskett 2021-01-10 13:01:43 +07:00
parent 344565a7b3
commit ae4b842c7a
2 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ install_desktop(){
} }
checkdep(){ checkdep(){
which $1 >/dev/null 2>&1 || err "Install $1!" hash $1 2>/dev/null || err "Install $1!"
} }
err(){ err(){

View File

@ -3,7 +3,7 @@
source /etc/archbox.conf source /etc/archbox.conf
checkdep(){ checkdep(){
which $1 >/dev/null 2>&1 || err "Install $1!" hash $1 2>/dev/null || err "Install $1!"
} }
copyresolv(){ copyresolv(){