Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clear out "additions" directory before transferring in the updated files. #30

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

crispyoz
Copy link
Contributor

Update "prepare_imagebuilder" clear out "additions" directory before transferring in the updated files.

Update "prepare_imagebuilder" clear our "additions" directory before transferring in the updates files.
Copy link
Contributor

@greenbreakfast greenbreakfast left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@crispyoz looks good, just have two suggestions

@@ -90,8 +90,15 @@ download_builder() {
return 0
}

clean_additions() {
if [ -n "$IMAGE_BUILDER_USER_FILES" ] && [ -d "$IMAGE_BUILDER_USER_FILES" ]; then
Copy link
Contributor

@greenbreakfast greenbreakfast Feb 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to define this IMAGE_BUILDER_USER_FILES variable?

@@ -90,8 +90,15 @@ download_builder() {
return 0
}

clean_additions() {
if [ -n "$IMAGE_BUILDER_USER_FILES" ] && [ -d "$IMAGE_BUILDER_USER_FILES" ]; then
rm -rf "$IMAGE_BUILDER_USER_FILES" || return 1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add a print statement to let the user know we've deleted the existing files directory in the image builder?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants