File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -85,12 +85,19 @@ if [ "network" = "${1}" ]; then
85
85
exit
86
86
fi
87
87
88
- COMPONENT=$STACK_PATH /$1
88
+ COMPONENT=" ${STACK_PATH} /${1} "
89
+
90
+ if [ ! -d " ${COMPONENT} " ]; then
91
+ printf " \033[0;31mWhoops! Component \" %s\" does not exists.\033[0m\\ n" " ${COMPONENT} " >&2
92
+
93
+ exit 1
94
+ fi
95
+
96
+ if [ ! -f " ${COMPONENT} /docker-compose.yml" ]; then
97
+ printf " \033[0;31mWhoops! Component \" %s\" does not define a \" docker-compose.yml\" .\033[0m\\ n" " ${COMPONENT} " >&2
89
98
90
- if [ ! -d $COMPONENT ]; then
91
- echo " \033[0;31mWhoops! Component \" $COMPONENT \" does not exists." >&2
92
99
exit 1
93
100
fi
94
101
95
102
CMD=${@: 2}
96
- $CONTAINER_COMPOSE -f $ COMPONENT /docker-compose.yml ${CMD:- up -d}
103
+ $CONTAINER_COMPOSE -f " ${ COMPONENT} /docker-compose.yml" ${CMD:- up -d}
You can’t perform that action at this time.
0 commit comments