From 64f0cedd34d23293355186a002bd2f892abd3058 Mon Sep 17 00:00:00 2001 From: "Jason N." <33561705+JasonN3@users.noreply.github.com> Date: Mon, 11 Mar 2024 13:12:53 -0400 Subject: [PATCH] don't check if directory --- Makefile | 2 +- lorax_templates/cache_copy_dnf.tmpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 03b27cb..d5bbe3e 100644 --- a/Makefile +++ b/Makefile @@ -219,7 +219,7 @@ clean: rm -f $(_BASE_DIR)/*.log || true install-deps: - dnf install -y lorax xorriso skopeo flatpak dbus-daemon ostree coreutils + dnf install -y lorax xorriso skopeo flatpak dbus-daemon ostree coreutils gettext test: test-iso test-vm diff --git a/lorax_templates/cache_copy_dnf.tmpl b/lorax_templates/cache_copy_dnf.tmpl index 69f3413..524eb00 100644 --- a/lorax_templates/cache_copy_dnf.tmpl +++ b/lorax_templates/cache_copy_dnf.tmpl @@ -1,3 +1,3 @@ <%page args="dnf_cache"/> -runcmd bash -c "if [[ -d ${dnf_cache} ]]; then cp -R ${dnf_cache} ${dnf_cache}_new; fi" \ No newline at end of file +runcmd bash -c "if [[ -e ${dnf_cache}_new ]]; then cp -R ${dnf_cache} ${dnf_cache}_new; fi" \ No newline at end of file