Save QINIU_CDN_DOMAIN only when defined

This commit is contained in:
shonenada committed 2019-01-20 23:58:10 +08:00
1 parent afdb9a63ff
commit dd6fa4af00
1 file changed
+4 -4
+4 -4
View File
@@ -36,12 +36,12 @@ qiniu_deploy() {
_savedomainconf QINIU_SK "$QINIU_SK"
fi
if [ -z "$QINIU_CDN_DOMAIN" ]; then
QINIU_CDN_DOMAIN="$_cdomain"
if [ "$QINIU_CDN_DOMAIN" ]; then
_savedomainconf QINIU_CDN_DOMAIN "$QINIU_CDN_DOMAIN"
else
QINIU_CDN_DOMAIN="$_cdomain"
fi
_savedomainconf QINIU_CDN_DOMAIN "$QINIU_CDN_DOMAIN"
## upload certificate
string_fullchain=$(sed 's/$/\\n/' "$_cfullchain" | tr -d '\n')
string_key=$(sed 's/$/\\n/' "$_ckey" | tr -d '\n')
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.