Ability to echo back invoked command for docker

By setting `ECHO_DOCKER_COMMAND` to `true`, the mocked docker binary
will echo back the command used to call it instead of mocking a
response.
This commit is contained in:
Loïc Guitaut
2015-09-08 22:57:42 +02:00
parent 2a9f715eed
commit cc5c7fee25

View File

@@ -1,4 +1,9 @@
#!/usr/bin/env bash
if [[ $ECHO_DOCKER_COMMAND == "true" ]]; then
echo "$(basename "$0") $*"
exit 0
fi
case "$1" in
stop)
echo "testid"