mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-20 07:05:08 +00:00
fixed issue where if you didnt supply 2nd arg in init it would default
This commit is contained in:
parent
2f7ca23290
commit
4c15279f07
1 changed files with 3 additions and 1 deletions
4
dbench
4
dbench
|
|
@ -27,7 +27,7 @@ function frappe_installer {
|
|||
echo "$1 added"
|
||||
}
|
||||
|
||||
if [[ $# -eq 0 ]]; then
|
||||
if [[ $# -eq 1 ]]; then
|
||||
echo "$@"
|
||||
docker exec -it frappe bash 'bench $@'
|
||||
|
||||
|
|
@ -38,6 +38,8 @@ elif [ $1 == '--init' ]; then
|
|||
fi
|
||||
if [ -z "$2" ]; then
|
||||
site="site1.local"
|
||||
else
|
||||
site=$2
|
||||
fi
|
||||
echo "$site"
|
||||
frappe_installer $site
|
||||
|
|
|
|||
Loading…
Reference in a new issue