mirror of
https://github.com/mozilla/cipherscan.git
synced 2024-11-25 23:43:42 +01:00
Merge pull request #50 from firstbanco/busybox_fix
Fix for busybox timeout binary
This commit is contained in:
commit
089f9e04c2
@ -27,6 +27,7 @@ fi
|
|||||||
|
|
||||||
# test that timeout or gtimeout (darwin) are present
|
# test that timeout or gtimeout (darwin) are present
|
||||||
TIMEOUTBIN="$(which timeout)"
|
TIMEOUTBIN="$(which timeout)"
|
||||||
|
|
||||||
if [ "$TIMEOUTBIN" == "" ]; then
|
if [ "$TIMEOUTBIN" == "" ]; then
|
||||||
TIMEOUTBIN="$(which gtimeout)"
|
TIMEOUTBIN="$(which gtimeout)"
|
||||||
if [ "$TIMEOUTBIN" == "" ]; then
|
if [ "$TIMEOUTBIN" == "" ]; then
|
||||||
@ -35,6 +36,12 @@ if [ "$TIMEOUTBIN" == "" ]; then
|
|||||||
fi
|
fi
|
||||||
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
|
# find a list of trusted CAs on the local system, or use the provided list
|
||||||
if [ -z "$CACERTS" ]; then
|
if [ -z "$CACERTS" ]; then
|
||||||
for f in /etc/pki/tls/certs/ca-bundle.crt /etc/ssl/certs/ca-certificates.crt; do
|
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