Merge pull request #5015 from dokku/5012-clone-fixes

Avoid popd errors when dokku is run as root
This commit is contained in:
Jose Diaz-Gonzalez authored and GitHub committed 2022-01-28 11:34:16 -05:00
commit c42916c027
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -26,7 +26,7 @@ trigger-builder-dockerfile-core-post-extract() {
fi fi
mv "$NEW_DOCKERFILE" Dockerfile mv "$NEW_DOCKERFILE" Dockerfile
popd &>/dev/null popd &>/dev/null || pushd "/tmp" >/dev/null
} }
trigger-builder-dockerfile-core-post-extract "$@" trigger-builder-dockerfile-core-post-extract "$@"
+1 -1
View File
@@ -24,7 +24,7 @@ trigger-builder-pack-core-post-extract() {
if [[ "$NEW_PROJECT_TOML" != "project.toml" ]]; then if [[ "$NEW_PROJECT_TOML" != "project.toml" ]]; then
mv "$NEW_PROJECT_TOML" project.toml mv "$NEW_PROJECT_TOML" project.toml
fi fi
popd &>/dev/null popd &>/dev/null || pushd "/tmp" >/dev/null
} }
trigger-builder-pack-core-post-extract "$@" trigger-builder-pack-core-post-extract "$@"