commit b7737ff
chld
·
2025-12-22 23:51:32 +0000 UTC
parent 47817f6
update
1 files changed,
+5,
-2
+5,
-2
1@@ -5,8 +5,11 @@ m=${m:-/mnt}
2 __hhc(){
3 # determine if host has needed command
4 u=''
5- if test -e $1; then u='$1'
6- elif test -e $m/bin/$1; then u="$m/bin/$1" ; fi
7+ if command -v $1 >/dev/null 2>&1;
8+ then u="$1"
9+ elif test -e $m/bin/$1 >/dev/null 2>&1;
10+ then u="$m/bin/$1"
11+ fi
12 }
13
14 _inc(){