Log docker command only if env is enabled.

This commit is contained in:
Alexey Zhokhov 2018-08-05 22:18:42 +08:00
parent 5860120233
commit a296420cdc

View File

@ -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 "$@"