Skip to content
Permalink
Browse files

minor, check for mkdir

  • Loading branch information...
neilpang
neilpang committed Jun 3, 2019
1 parent 2e3ddd3 commit 951bd3a5172945d36344428d6710e211157ad50b
Showing with 4 additions and 1 deletion.
  1. +4 −1 deploy/docker.sh
@@ -195,7 +195,10 @@ _docker_cp() {
_info "Copying file from $_from to $_to"
_dir="$(dirname "$_to")"
_debug2 _dir "$_dir"
_docker_exec "$_dcid" mkdir -p "$_dir"
if ! _docker_exec "$_dcid" mkdir -p "$_dir"; then
_err "Can not create dir: $_dir"
return 1
fi
if [ "$_USE_DOCKER_COMMAND" ]; then
if [ "$DEBUG" ] && [ "$DEBUG" -ge "2" ]; then
_docker_exec "$_dcid" tee "$_to" <"$_from"

0 comments on commit 951bd3a

Please sign in to comment.
You can’t perform that action at this time.