2
0
mirror of https://github.com/frappe/frappe_docker.git synced 2024-11-14 00:54:07 +00:00
frappe_docker/build/frappe-worker/install_app.sh

12 lines
356 B
Bash
Raw Normal View History

2021-06-23 04:28:14 +00:00
#!/bin/bash -ex
APP_NAME=${1}
APP_REPO=${2}
2020-03-04 03:33:23 +00:00
APP_BRANCH=${3}
[[ -n "${APP_BRANCH}" ]] && BRANCH="-b ${APP_BRANCH}"
2020-03-04 03:33:23 +00:00
# shellcheck disable=SC2086
git clone --depth 1 -o upstream "${APP_REPO}" ${BRANCH} "/home/frappe/frappe-bench/apps/${APP_NAME}"
/home/frappe/frappe-bench/env/bin/pip3 install --no-cache-dir -e "/home/frappe/frappe-bench/apps/${APP_NAME}"