From 4f16f7e0bf63b2ccc6d69791be38f05a8155c61b Mon Sep 17 00:00:00 2001 From: Bogdan-Constantin Popescu Date: Tue, 20 Feb 2018 13:46:21 +0100 Subject: [PATCH] Add safe flags for bash --- build_libcurl_dist.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build_libcurl_dist.sh b/build_libcurl_dist.sh index 57c60c4..3bff081 100755 --- a/build_libcurl_dist.sh +++ b/build_libcurl_dist.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -euo pipefail export DEVROOT=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain DFT_DIST_DIR=${HOME}/Desktop/libcurl-ios-dist @@ -24,7 +24,7 @@ function build_for_arch() { ./configure --disable-shared --without-zlib --enable-static --enable-ipv6 ${SSL_FLAG} --host="${HOST}" --prefix=${PREFIX} && make -j8 && make install } -if [ "$1" == "openssl" ] +if [ "${1:-''}" == "openssl" ] then if [ ! -d ${HOME}/Desktop/openssl-ios-dist ] then