Skip to content

Commit d7998d0

Browse files
Allow for getSourceOnly on non-z/OS platforms
1 parent 1b782b4 commit d7998d0

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

bin/zopen-build

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -843,9 +843,11 @@ setEnv()
843843
{
844844

845845
# Certificate information
846-
export SSL_CERT_FILE="${ZOPEN_CA}"
847-
export GIT_SSL_CAINFO="${ZOPEN_CA}"
848-
export CURL_CA_BUNDLE="${ZOPEN_CA}"
846+
if [ -n "${ZOPEN_CA}" ]; then
847+
export SSL_CERT_FILE="${ZOPEN_CA}"
848+
export GIT_SSL_CAINFO="${ZOPEN_CA}"
849+
export CURL_CA_BUNDLE="${ZOPEN_CA}"
850+
fi
849851

850852
initDefaultEnvironment
851853
setDepsEnv
@@ -963,6 +965,9 @@ tagBinaryFiles()
963965
#
964966
tagTree()
965967
{
968+
if ${getSourceOnly}; then
969+
return;
970+
fi
966971
dirtotag="$1"
967972
absdir=$(cd ${dirtotag} && echo "${PWD}")
968973
tagBinaryFiles "${absdir}"

0 commit comments

Comments
 (0)