Prevent word splitting

This commit is contained in:
David Cooper 2017-04-12 15:39:37 -04:00
parent 4d0bd4acb5
commit 59683927f8
1 changed files with 2 additions and 2 deletions

View File

@ -10484,8 +10484,8 @@ find_openssl_binary() {
openssl_location="$(which $OPENSSL)" openssl_location="$(which $OPENSSL)"
[[ -n "$GIT_REL" ]] && \ [[ -n "$GIT_REL" ]] && \
cwd=$(/bin/pwd) || \ cwd="$(/bin/pwd)" || \
cwd=$RUN_DIR cwd="$RUN_DIR"
if [[ "$openssl_location" =~ $(/bin/pwd)/bin ]]; then if [[ "$openssl_location" =~ $(/bin/pwd)/bin ]]; then
OPENSSL_LOCATION="\$PWD/bin/$(basename "$openssl_location")" OPENSSL_LOCATION="\$PWD/bin/$(basename "$openssl_location")"
elif [[ "$openssl_location" =~ $cwd ]] && [[ "$cwd" != '.' ]]; then elif [[ "$openssl_location" =~ $cwd ]] && [[ "$cwd" != '.' ]]; then