Skip to content

Commit 39bf1d2

Browse files
committed
inline: Redirect all output from 'which bc' to /dev/null
Signed-off-by: Richard T Bonhomme <[email protected]>
1 parent 9bada24 commit 39bf1d2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

easyrsa3/easyrsa

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2904,10 +2904,9 @@ $(cat "$crt_source")
29042904
</cert>"
29052905

29062906
# Calculate decimal value for serial number
2907-
# because openvpn uses decimal serial ?!?
2907+
# because openvpn uses decimal serial
29082908
# for '--crl-verify /path/to/dir dir'
2909-
# For reasons unknown..
2910-
if which bc >/dev/null; then
2909+
if which bc 1>/dev/null 2>&1; then
29112910
inline_crt_serial=
29122911
ssl_cert_serial "$crt_source" inline_crt_serial || \
29132912
die "inline_file - ssl_cert_serial"

0 commit comments

Comments
 (0)