Merge pull request #3434 from tamanobi/fix/ignore-cache-directories-when-clone
ignore cache directories when clone
This commit is contained in:
@@ -39,7 +39,7 @@ apps_clone_cmd() {
|
|||||||
|
|
||||||
apps_create "$NEW_APP"
|
apps_create "$NEW_APP"
|
||||||
pushd "$DOKKU_ROOT/$OLD_APP/." >/dev/null
|
pushd "$DOKKU_ROOT/$OLD_APP/." >/dev/null
|
||||||
find ./* -not \( -name .cache \) | grep -v "./cache" | cpio -pdmu --quiet "$DOKKU_ROOT/$NEW_APP"
|
find ./* \( -name ".cache" -o -name "cache" \) -prune -o -print | cpio -pdmu --quiet "$DOKKU_ROOT/$NEW_APP"
|
||||||
popd >/dev/null 2>&1 || pushd "/tmp" >/dev/null
|
popd >/dev/null 2>&1 || pushd "/tmp" >/dev/null
|
||||||
plugn trigger post-app-clone-setup "$OLD_APP" "$NEW_APP"
|
plugn trigger post-app-clone-setup "$OLD_APP" "$NEW_APP"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user