Browse Source

minor, check for mkdir

pull/2313/head
neilpang 6 years ago
parent
commit
951bd3a517
  1. 5
      deploy/docker.sh

5
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"

Loading…
Cancel
Save