mirror of
https://github.com/djrobstep/migra.git
synced 2024-09-11 05:45:51 +03:00
Log docker command only if env is enabled.
This commit is contained in:
parent
5860120233
commit
a296420cdc
@ -3,8 +3,10 @@
|
||||
set -e
|
||||
|
||||
if [ "$1" = 'migra' ]; then
|
||||
migra_command="$@"
|
||||
echo "${migra_command}"
|
||||
if [ "${MIGRA_LOG_COMMAND}" = 'true' ]; then
|
||||
migra_command="$@"
|
||||
echo "${migra_command}"
|
||||
fi
|
||||
fi
|
||||
|
||||
exec "$@"
|
||||
|
Loading…
Reference in New Issue
Block a user