You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fails because /dev/fd/63 does not satisfy the test:
elif [ -f "${SERVERFILE}" ]; then
which looks for an extant regular file. However, a regular file should not be required, just a readable one. In bash, I'd suggest the -r test instead--I can't speak to other shells.
The text was updated successfully, but these errors were encountered:
Another disadvantage is the race condition between the test and grep actually opening the file. Not a big issue, but not ideal either.
I propose to change the code like this:
$ bash -x ssl-cert-check -f <(echo -e 'example.com 443')
fails because /dev/fd/63 does not satisfy the test:
elif [ -f "${SERVERFILE}" ]; then
which looks for an extant regular file. However, a regular file should not be required, just a readable one. In bash, I'd suggest the -r test instead--I can't speak to other shells.
The text was updated successfully, but these errors were encountered: