Commit 1ef49ec99da9685516247fed49a5e1f0064a2bd0
1 parent
15013489c1
Exists in
master
libnetwork.lib - use the builtin command 'type' instead of 'which'
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
Showing 2 changed files with 5 additions and 1 deletions Side-by-side Diff
ChangeLog
... | ... | @@ -65,6 +65,10 @@ |
65 | 65 | * tests/{test01_pkgquality,test02_pkgsecurity} - Davide Madrisan |
66 | 66 | Fix an obsolete and now unsupported syntax for 'find -perm'. |
67 | 67 | |
68 | ++ improvement | |
69 | + * lib/libnetwork.lib - Davide Madrisan | |
70 | + Do not use the external tool 'which'. Use the bash builtin command 'type'. | |
71 | + | |
68 | 72 | ------------------------------------------------------------------------------- |
69 | 73 | |
70 | 74 | Changes in version 1.16.4 - "Korbielow" release |
lib/libnetwork.lib.in
... | ... | @@ -1002,7 +1002,7 @@ |
1002 | 1002 | notify.debug "$FUNCNAME: pck_version = \"$pck_version\"" |
1003 | 1003 | fi |
1004 | 1004 | |
1005 | - which git &>/dev/null || | |
1005 | + type -p git &>/dev/null || | |
1006 | 1006 | notify.error $"utility not found"": \`git'" |
1007 | 1007 | |
1008 | 1008 | local tmpgitdir=$(mktemp -q -d -t tmpgit.XXXXXXXX) |