mirror of
https://github.com/yuzu-emu/mbedtls
synced 2024-11-25 00:38:16 +00:00
Use shell string processing instead of sed in ssl-opt.sh
This commit is contained in:
parent
e41158ba10
commit
4ac73e7804
1 changed files with 4 additions and 7 deletions
|
@ -457,7 +457,7 @@ run_test() {
|
|||
kill $PXY_PID >/dev/null 2>&1
|
||||
sleep 0.01
|
||||
if kill -0 $PXY_PID >/dev/null 2>&1; then
|
||||
kill -KILL $pXY_PID
|
||||
kill -KILL $PXY_PID
|
||||
wait $PXY_PID
|
||||
fi
|
||||
fi
|
||||
|
@ -608,12 +608,9 @@ fi
|
|||
get_options "$@"
|
||||
|
||||
# sanity checks, avoid an avalanche of errors
|
||||
P_SRV_BIN=$(echo "$P_SRV" | sed -r -n "s/^([^ ]*).*$/\1/p")
|
||||
echo "Server binary: ${P_SRV_BIN}"
|
||||
P_CLI_BIN=$(echo "$P_CLI" | sed -r -n "s/^([^ ]*).*$/\1/p")
|
||||
echo "Client binary: ${P_CLI_BIN}"
|
||||
P_PXY_BIN=$(echo "$P_PXY" | sed -r -n "s/^([^ ]*).*$/\1/p")
|
||||
echo "Proxy binary: ${P_PXY_BIN}"
|
||||
P_SRV_BIN="${P_SRV%%[ ]*}"
|
||||
P_CLI_BIN="${P_CLI%%[ ]*}"
|
||||
P_PXY_BIN="${P_PXY%%[ ]*}"
|
||||
if [ ! -x "$P_SRV_BIN" ]; then
|
||||
echo "Command '$P_SRV_BIN' is not an executable file"
|
||||
exit 1
|
||||
|
|
Loading…
Reference in a new issue