mirror of
https://github.com/frappe/frappe_docker.git
synced 2024-11-14 17:14:05 +00:00
12eb5c92e4
- shellchecke and shfmt checked and formatted - indentation 2 spaces - redirect errors to stderr - short if where possible - add function string to clarify visuaally identify its a funtion - make [ ... ] to [[ ... ]] - use == for comparision - use cat based notes - remove unecessary spaces - double quotes where needed
17 lines
313 B
Bash
Executable File
17 lines
313 B
Bash
Executable File
#!/bin/bash
|
|
|
|
APP_NAME=${1}
|
|
APP_REPO=${2}
|
|
APP_BRANCH=${3}
|
|
|
|
cd /home/frappe/frappe-bench/
|
|
|
|
env/bin/activate
|
|
|
|
cd ./apps
|
|
|
|
[[ -n "${APP_BRANCH}" ]] && BRANCH="-b ${APP_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}
|