mirror of
https://repo.or.cz/socat.git
synced 2024-12-22 23:42:34 +00:00
test.sh: Archlinux: No which; changes on ip,ss commands
This commit is contained in:
parent
152de04f7c
commit
0c65370ae5
2 changed files with 8 additions and 5 deletions
3
CHANGES
3
CHANGES
|
@ -17,6 +17,9 @@ Testing:
|
|||
|
||||
Ubuntu 20.04 requires 2048 bit certificates with OpenSSL
|
||||
|
||||
Archlinux 2020 has not which command; its ip,ss commands have modified
|
||||
version strings
|
||||
|
||||
####################### V 1.7.3.4:
|
||||
|
||||
Corrections:
|
||||
|
|
10
test.sh
10
test.sh
|
@ -232,16 +232,16 @@ else
|
|||
fi
|
||||
|
||||
if type ip >/dev/null 2>&1; then
|
||||
if ip -V |grep -q "^ip utility, iproute2-ss"; then
|
||||
IP=$(which ip)
|
||||
if ip -V |grep -q "^ip utility, iproute2-"; then
|
||||
IP=$(type -p ip)
|
||||
else
|
||||
unset IP
|
||||
fi
|
||||
fi
|
||||
|
||||
if type ss >/dev/null 2>&1; then
|
||||
if ss -V |grep -q "^ss utility, iproute2-ss"; then
|
||||
SS=$(which ss)
|
||||
if ss -V |grep -q "^ss utility, iproute2-"; then
|
||||
SS=$(type -p ss)
|
||||
else
|
||||
unset SS
|
||||
fi
|
||||
|
@ -373,7 +373,7 @@ else
|
|||
SECONDIP6ADDR="[$SECONDIP6ADDR]"
|
||||
fi
|
||||
|
||||
TRUE=$(which true)
|
||||
TRUE=$(type true)
|
||||
#E=-e # Linux
|
||||
if [ $(echo "x\c") = "x" ]; then E=""
|
||||
elif [ $(echo -e "x\c") = "x" ]; then E="-e"
|
||||
|
|
Loading…
Reference in a new issue