mirror of
https://github.com/bol-van/zapret.git
synced 2026-03-09 06:45:24 +00:00
do not use possibly absent 'which' command
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user