13 lines
245 B
Bash
Executable file
13 lines
245 B
Bash
Executable file
#!/bin/bash
|
|
|
|
dcp() {
|
|
if envf=$(./env_file $1); then
|
|
export ENV_FILE=$envf
|
|
echo "export ENV_FILE=$envf; docker compose --env-file $envf "
|
|
else
|
|
return 1
|
|
fi
|
|
}
|
|
|
|
# # if script was executed then call the function
|
|
(return 0 2>/dev/null) || dcp $@
|