fix: install app failed when APP_NAME is not same as the one contained in APP_REPO

This commit is contained in:
everyx 2020-11-24 19:23:54 +08:00
parent b17bd39fc9
commit 39aff8627b
2 changed files with 2 additions and 2 deletions

View File

@ -12,5 +12,5 @@ cd ./apps
[ "${APP_BRANCH}" ] && BRANCH="-b ${APP_BRANCH}"
git clone --depth 1 -o upstream ${APP_REPO} ${BRANCH}
git clone --depth 1 -o upstream ${APP_REPO} ${BRANCH} ${APP_NAME}
pip3 install --no-cache-dir -e /home/frappe/frappe-bench/apps/${APP_NAME}

View File

@ -15,7 +15,7 @@ install_packages git python2
mkdir -p apps
cd apps
git clone --depth 1 https://github.com/frappe/frappe ${BRANCH}
git clone --depth 1 ${APP_REPO} ${BRANCH}
git clone --depth 1 ${APP_REPO} ${BRANCH} ${APP_NAME}
cd /home/frappe/frappe-bench/apps/frappe
yarn