File tree Expand file tree Collapse file tree 3 files changed +39
-27
lines changed Expand file tree Collapse file tree 3 files changed +39
-27
lines changed Original file line number Diff line number Diff line change @@ -24,15 +24,19 @@ check_config "db_user" "$USER"
24
24
check_config " db_password" " $PASSWORD "
25
25
26
26
case " $1 " in
27
- -- | odoo)
28
- shift
29
- exec odoo " ${DB_ARGS[@]} " " $@ "
30
- ;;
31
- -* )
32
- exec odoo " ${DB_ARGS[@]} " " $@ "
33
- ;;
34
- * )
35
- exec " $@ "
27
+ -- | odoo)
28
+ shift
29
+ if [[ " $1 " == " scaffold" ]] ; then
30
+ exec odoo " $@ "
31
+ else
32
+ exec odoo " $@ " " ${DB_ARGS[@]} "
33
+ fi
34
+ ;;
35
+ -* )
36
+ exec odoo " $@ " " ${DB_ARGS[@]} "
37
+ ;;
38
+ * )
39
+ exec " $@ "
36
40
esac
37
41
38
42
exit 1
Original file line number Diff line number Diff line change @@ -24,15 +24,19 @@ check_config "db_user" "$USER"
24
24
check_config " db_password" " $PASSWORD "
25
25
26
26
case " $1 " in
27
- -- | openerp-server)
28
- shift
29
- exec openerp-server " ${DB_ARGS[@]} " " $@ "
30
- ;;
31
- -* )
32
- exec openerp-server " ${DB_ARGS[@]} " " $@ "
33
- ;;
34
- * )
35
- exec " $@ "
27
+ -- | openerp-server)
28
+ shift
29
+ if [[ " $1 " == " scaffold" ]] ; then
30
+ exec openerp-server " $@ "
31
+ else
32
+ exec openerp-server " $@ " " ${DB_ARGS[@]} "
33
+ fi
34
+ ;;
35
+ -* )
36
+ exec openerp-server " $@ " " ${DB_ARGS[@]} "
37
+ ;;
38
+ * )
39
+ exec " $@ "
36
40
esac
37
41
38
42
exit 1
Original file line number Diff line number Diff line change @@ -24,15 +24,19 @@ check_config "db_user" "$USER"
24
24
check_config " db_password" " $PASSWORD "
25
25
26
26
case " $1 " in
27
- -- | openerp-server)
28
- shift
29
- exec openerp-server " ${DB_ARGS[@]} " " $@ "
30
- ;;
31
- -* )
32
- exec openerp-server " ${DB_ARGS[@]} " " $@ "
33
- ;;
34
- * )
35
- exec " $@ "
27
+ -- | openerp-server)
28
+ shift
29
+ if [[ " $1 " == " scaffold" ]] ; then
30
+ exec openerp-server " $@ "
31
+ else
32
+ exec openerp-server " $@ " " ${DB_ARGS[@]} "
33
+ fi
34
+ ;;
35
+ -* )
36
+ exec openerp-server " $@ " " ${DB_ARGS[@]} "
37
+ ;;
38
+ * )
39
+ exec " $@ "
36
40
esac
37
41
38
42
exit 1
You can’t perform that action at this time.
0 commit comments