Skip to content

Commit 0eb6e3b

Browse files
committed
Add root context syntax
1 parent f5330d3 commit 0eb6e3b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

dockerc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -743,7 +743,7 @@ if [ "$CONTEXT" != '--' ]; then
743743

744744
CONTEXT_SKIP_ROOT_STANDARD='false'
745745

746-
if [ "$CONTEXT" = '-' ] || [ "$CONTEXT" = '.' ]; then
746+
if [ "$CONTEXT" = '-' ]; then
747747
# Use default context
748748
CONTEXT=''
749749

@@ -805,7 +805,7 @@ if [ "$CONTEXT" != '--' ]; then
805805
fi
806806

807807
# Parse context parts
808-
if [ -n "$CONTEXT" ]; then
808+
if [ -n "$CONTEXT" ] && [ "$CONTEXT" != '.' ]; then
809809

810810
if [ -n "$LVL1_COMPOSE_FILE_ARGS" ]; then
811811

@@ -1002,7 +1002,8 @@ if [ "$CONTEXT" != '--' ]; then
10021002
break
10031003
fi
10041004

1005-
elif [ "$CONTEXT" != 'prod' ]; then
1005+
elif [ "$CONTEXT" != '.' ] && [ "$CONTEXT" != 'prod' ]; then
1006+
# Neither "root" nor "prod" context
10061007
# Context not resolved: invalidate LVL1 & break loop
10071008
LVL1_COMPOSE_FILE_ARGS=''
10081009
break

0 commit comments

Comments
 (0)