mirror of
https://github.com/status-im/miniupnp.git
synced 2025-02-20 09:48:26 +00:00
configure: use 'command -v' instead of 'which'
This commit is contained in:
parent
6e16650bc2
commit
d2f558f659
4
miniupnpd/configure
vendored
4
miniupnpd/configure
vendored
@ -80,7 +80,7 @@ CONFIGFILE=`mktemp tmp.config.h.XXXXXXXXXX`
|
||||
CONFIGFILE_FINAL="config.h"
|
||||
CONFIGMACRO="CONFIG_H_INCLUDED"
|
||||
if [ -z "$PKG_CONFIG" ] ; then
|
||||
PKG_CONFIG=`which pkg-config`
|
||||
PKG_CONFIG=`command -v pkg-config`
|
||||
fi
|
||||
|
||||
MINIUPNPD_DATE=`date +"%Y%m%d"`
|
||||
@ -350,7 +350,7 @@ case $OS_NAME in
|
||||
OS_URL=https://www.clearos.com/
|
||||
fi
|
||||
# use lsb_release (Linux Standard Base) when available
|
||||
LSB_RELEASE=`which lsb_release`
|
||||
LSB_RELEASE=`command -v lsb_release`
|
||||
if [ 0 -eq $? ]; then
|
||||
OS_NAME=`${LSB_RELEASE} -i -s`
|
||||
OS_VERSION=`${LSB_RELEASE} -r -s`
|
||||
|
Loading…
x
Reference in New Issue
Block a user