Use hash for command checking.
This commit is contained in:
parent
344565a7b3
commit
ae4b842c7a
@ -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(){
|
||||
|
@ -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(){
|
||||
|
Loading…
Reference in New Issue
Block a user