From e9daed71439eae2ba932ec20141cceb1f8394525 Mon Sep 17 00:00:00 2001 From: AuxXxilium Date: Sat, 28 Dec 2024 19:20:55 +0100 Subject: [PATCH] func: fix dual build Signed-off-by: AuxXxilium --- scripts/func.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/func.sh b/scripts/func.sh index eb341e9a8..d8e51b0b2 100755 --- a/scripts/func.sh +++ b/scripts/func.sh @@ -503,8 +503,8 @@ function copyBuildroot() { # create arc executable function createArc() { - ./scripts/make/makeself.sh --current --zstd --quiet "../arc/files/initrd/opt/arc" arc "Arc Loader" "./init.sh" + [ ! -f "arc" ] && ./scripts/make/makeself.sh --current --zstd --quiet "../arc/files/initrd/opt/arc" arc "Arc Loader" "./init.sh" || true rm -rf "../arc/files/initrd/opt/arc" mkdir -p "../arc/files/initrd/opt/arc" - mv -f "arc" "../arc/files/initrd/opt/arc/" + cp -f "arc" "../arc/files/initrd/opt/arc/" } \ No newline at end of file