mirror of
https://github.com/mozilla/cipherscan.git
synced 2024-12-26 04:33:42 +01:00
Fix for busybox timeout binary
This commit is contained in:
parent
606d7626db
commit
6db82374b4
@ -27,6 +27,7 @@ fi
|
||||
|
||||
# test that timeout or gtimeout (darwin) are present
|
||||
TIMEOUTBIN="$(which timeout)"
|
||||
|
||||
if [ "$TIMEOUTBIN" == "" ]; then
|
||||
TIMEOUTBIN="$(which gtimeout)"
|
||||
if [ "$TIMEOUTBIN" == "" ]; then
|
||||
@ -35,6 +36,12 @@ if [ "$TIMEOUTBIN" == "" ]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
# Check for busybox, which has different arguments
|
||||
TIMEOUTOUTPUT=$(($TIMEOUTBIN --help) 2>&1)
|
||||
if [[ "$TIMEOUTOUTPUT" =~ BusyBox ]]; then
|
||||
TIMEOUTBIN="$TIMEOUTBIN -t"
|
||||
fi
|
||||
|
||||
# find a list of trusted CAs on the local system, or use the provided list
|
||||
if [ -z "$CACERTS" ]; then
|
||||
for f in /etc/pki/tls/certs/ca-bundle.crt /etc/ssl/certs/ca-certificates.crt; do
|
||||
|
Loading…
Reference in New Issue
Block a user