From 2408b163c4c0a2fdfeac4e710b24391e87b9f6a5 Mon Sep 17 00:00:00 2001 From: dowzyx Date: Wed, 10 May 2023 11:20:25 +0800 Subject: [PATCH] fix: fix install error --- build/install.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/build/install.sh b/build/install.sh index d92f135..fce8aeb 100755 --- a/build/install.sh +++ b/build/install.sh @@ -37,7 +37,9 @@ function install_daemon_bin() echo "${GOPHER_BIN_FILE} not exist. please check if build success." exit 1 fi - + if [ ! -d ${GOPHER_BIN_TARGET_DIR} ]; then + mkdir -p ${GOPHER_BIN_TARGET_DIR} + fi # install gala-gopher bin cp -f ${GOPHER_BIN_FILE} ${GOPHER_BIN_TARGET_DIR} echo "install ${GOPHER_BIN_FILE} success." @@ -65,7 +67,7 @@ function install_conf() # install gala-gopher.conf if [ ! -d ${GOPHER_CONF_TARGET_DIR} ]; then - mkdir ${GOPHER_CONF_TARGET_DIR} + mkdir -p ${GOPHER_CONF_TARGET_DIR} fi cp -f ${GOPHER_CONF_FILE} ${GOPHER_CONF_TARGET_DIR} echo "install ${GOPHER_CONF_FILE} success." -- 2.33.0