From ae2dff3c271b04bbb2e0d2ecac52a07ab8bc5eaa Mon Sep 17 00:00:00 2001 From: "Jason N." <33561705+JasonN3@users.noreply.github.com> Date: Mon, 8 Apr 2024 09:17:58 -0400 Subject: [PATCH] check if file exists --- xorriso/Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/xorriso/Makefile b/xorriso/Makefile index 6c1c5f1..c28e1e7 100644 --- a/xorriso/Makefile +++ b/xorriso/Makefile @@ -1,6 +1,5 @@ input.txt: gen_input.sh - find ../results/ - sed -i 's/quiet/quiet $(EXTRA_BOOT_PARAMS)/g' ../results/boot/grub2/grub.cfg + $(if $(wildcard ../results/boot/grub2/grub.cfg),sed -i 's/quiet/quiet $(EXTRA_BOOT_PARAMS)/g' ../results/boot/grub2/grub.cfg) sed -i 's/quiet/quiet $(EXTRA_BOOT_PARAMS)/g' ../results/EFI/BOOT/grub.cfg $(eval _VARS = ARCH FLATPAK_DIR IMAGE_NAME IMAGE_TAG ISO_NAME VERSION) $(foreach var,$(_VARS),$(var)=$($(var))) bash gen_input.sh | tee input.txt