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