libnetwork.lib - use the builtin command 'type' instead of 'which'

Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
This commit is contained in:
Davide Madrisan 2014-12-14 22:31:27 +01:00
parent 15013489c1
commit 1ef49ec99d
2 changed files with 5 additions and 1 deletions

View File

@ -65,6 +65,10 @@ Sat Sep 20 2014 Madrisan <davide.madrisan(a)gmail.com>
* tests/{test01_pkgquality,test02_pkgsecurity} - Davide Madrisan
Fix an obsolete and now unsupported syntax for 'find -perm'.
+ improvement
* lib/libnetwork.lib - Davide Madrisan
Do not use the external tool 'which'. Use the bash builtin command 'type'.
-------------------------------------------------------------------------------
Changes in version 1.16.4 - "Korbielow" release

View File

@ -1002,7 +1002,7 @@ not the expected package version"" (${NOTE}${today}git${NORM})..."
notify.debug "$FUNCNAME: pck_version = \"$pck_version\""
fi
which git &>/dev/null ||
type -p git &>/dev/null ||
notify.error $"utility not found"": \`git'"
local tmpgitdir=$(mktemp -q -d -t tmpgit.XXXXXXXX)