fix: install_app set branch

This commit is contained in:
Revant Nandgaonkar
2020-03-07 05:33:32 +05:30
parent 4b87e50779
commit d00770e42f
2 changed files with 3 additions and 5 deletions

View File

@@ -4,8 +4,7 @@ APP_NAME=${1}
APP_REPO=${2}
APP_BRANCH=${3}
[ "${APP_BRANCH}" ] && \
BRANCH="-b ${APP_BRANCH}"
[ "${APP_BRANCH}" ] && BRANCH="-b ${APP_BRANCH}"
cd /home/frappe/frappe-bench
mkdir -p /home/frappe/frappe-bench/sites
@@ -13,7 +12,7 @@ echo "frappe\n${APP_NAME}" > /home/frappe/frappe-bench/sites/apps.txt
install_packages git python2
mkdir -p apps sites/assets
mkdir -p apps sites/assets
cd apps
git clone --depth 1 https://github.com/frappe/frappe ${BRANCH}
git clone --depth 1 ${APP_REPO} ${BRANCH}