mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-17 21:55:09 +00:00
Issue was with both messed up if and opposite placement for default
This commit is contained in:
parent
ee2c9c3a97
commit
2f7ca23290
1 changed files with 7 additions and 3 deletions
10
dbench
10
dbench
|
|
@ -32,9 +32,13 @@ if [[ $# -eq 0 ]]; then
|
|||
docker exec -it frappe bash 'bench $@'
|
||||
|
||||
elif [ $1 == '--init' ]; then
|
||||
site=$2
|
||||
if ! $2; then site="site1.local"; fi
|
||||
if ! $3; then site="site1.local"; fi
|
||||
site=$3
|
||||
if [ -z "$3" ]; then
|
||||
site="site1.local"
|
||||
fi
|
||||
if [ -z "$2" ]; then
|
||||
site="site1.local"
|
||||
fi
|
||||
echo "$site"
|
||||
frappe_installer $site
|
||||
if [ "$2" == '-e' ]; then
|
||||
|
|
|
|||
Loading…
Reference in a new issue