Run ssl-check in sub-shell to avoid bombing out from set -ex
@@ -25,9 +25,7 @@ docker run \
# check that rustup-init was built with ssl support
# see https://github.com/rust-lang-nursery/rustup.rs/issues/1051
-out=$(nm target/$TARGET/release/rustup-init | grep Curl_ssl_init)
-
-if [ -z "$out" ]; then
- echo "error: Missing ssl support!!!!" >&2
+if ! (nm target/$TARGET/release/rustup-init | grep Curl_ssl_version &> /dev/null); then
+ echo "Missing ssl support!!!!" >&2
exit 1
fi
