do not use possibly absent 'which' command

This commit is contained in:
bol-van
2023-08-08 10:47:01 +03:00
parent d5b104d781
commit 0459e0e450
2 changed files with 16 additions and 4 deletions

View File

@@ -5,10 +5,8 @@ EXEDIR="$(cd "$EXEDIR"; pwd)"
BINS=binaries
BINDIR="$EXEDIR/$BINS"
exists()
{
which "$1" >/dev/null 2>/dev/null
}
ZAPRET_BASE="$EXEDIR"
. "$ZAPRET_BASE/common/base.sh"
check_dir()
{