Remove the quiet mode flag (-q) from grep in version check commands
to ensure that their stdout output is visible.
Signed-off-by: Josef Schlehofer <redacted>
timeout 60s erl -noshell \
-eval "V = erlang:system_info(otp_release), io:format(\"OTP ~s~n\", [V])" \
-s init stop 2>&1 | \
- grep -qF "OTP ${otp_major}"
+ grep -F "OTP ${otp_major}"
;;
esac
# Check erl binary is present and prints the right OTP version
otp_major="${2%%.*}"
timeout 60s erl -noshell -eval "V = erlang:system_info(otp_release), io:format(\"OTP ~s~n\", [V])" -s init stop 2>&1 | \
- grep -qF "OTP ${otp_major}" || {
+ grep -F "OTP ${otp_major}" || {
echo "FAIL: erl did not report expected OTP version '$2' (major: $otp_major)"
exit 1
}