Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Commit

Permalink
(maint) fix find flag for linux.
Browse files Browse the repository at this point in the history
  • Loading branch information
nanliu committed Oct 17, 2016
1 parent 3eb46a3 commit ea03a4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/pre_deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ if [ -z "$TRAVIS_TAG" ]; then
_info "copying plugin binaries to ${latest_path}"
cp -rp "${build_path}/"* "${latest_path}"

find "${s3_path}" -type directory -name 'plugins' -exec sh -c 'mv $1/* $1/..' _ {} \; -delete
find "${s3_path}" -type d -name 'plugins' -exec sh -c 'mv $1/* $1/..' _ {} \; -delete
else
set -u
tag_path="${s3_path}/${TRAVIS_TAG}"
Expand All @@ -62,7 +62,7 @@ else
_info "copying plugin binaries to ${latest_path}"
cp -rp "${build_path}/"* "${latest_path}"

find "${s3_path}" -type directory -name 'plugins' -exec sh -c 'mv $1/* $1/..' _ {} \; -delete
find "${s3_path}" -type d -name 'plugins' -exec sh -c 'mv $1/* $1/..' _ {} \; -delete
fi

_debug "$(find "${build_path}")"
Expand Down

0 comments on commit ea03a4e

Please sign in to comment.