diff options
author | Alex Yang <yangyang1@zte.com.cn> | 2018-01-16 18:15:53 +0800 |
---|---|---|
committer | Alex Yang <yangyang1@zte.com.cn> | 2018-01-16 18:15:53 +0800 |
commit | 9ab9ac3fb8b93416c8b60a4440bda4f16187c00d (patch) | |
tree | 47ce6b00b8a5a634b2f8a3ac37506aab1efbbfbb | |
parent | 1591bb64f538e0a51ee2e80995d94443711edb99 (diff) |
Create pod's dir if it didn't exist
Change-Id: I0c284ef830caa2eb0f52efbee0b23d9a70449efe
Signed-off-by: Alex Yang <yangyang1@zte.com.cn>
-rwxr-xr-x | ci/deploy/deploy.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ci/deploy/deploy.sh b/ci/deploy/deploy.sh index c508e471..7d749af9 100755 --- a/ci/deploy/deploy.sh +++ b/ci/deploy/deploy.sh @@ -211,6 +211,7 @@ function update_dha_by_pdf() rm $tmpfile return fi + test -d $(dirname ${DHA_CONF}) || mkdir -p $(dirname ${DHA_CONF}) cp ${tmpfile} ${DHA_CONF} echo "====== Update deploy.yml from POD Descriptor File ======" @@ -219,6 +220,7 @@ function update_dha_by_pdf() echo "Cannot generate network configuration from PDF and IDF!" return fi + test -d $(dirname ${NETWORK_CONF}) || mkdir -p $(dirname ${NETWORK_CONF}) cp ${tmpfile} ${NETWORK_CONF} echo "====== Update $(basename ${NETWORK_CONF}) from POD Descriptor File ======" rm -f $tmpfile |