From 6169e66d762f329379605492b56e274dbd30ac67 Mon Sep 17 00:00:00 2001 From: AuxXxilium Date: Sun, 26 Nov 2023 15:01:21 +0100 Subject: [PATCH] addons: fix copy Signed-off-by: AuxXxilium --- files/initrd/opt/arc/include/addons.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/initrd/opt/arc/include/addons.sh b/files/initrd/opt/arc/include/addons.sh index 61ac30e..dbb902a 100755 --- a/files/initrd/opt/arc/include/addons.sh +++ b/files/initrd/opt/arc/include/addons.sh @@ -63,7 +63,7 @@ function installAddon() { [[ ${HAS_FILES} -ne 1 || ${ACTIVATE} = "false" ]] && return 1 cp -f "${TMP_PATH}/${ADDON}/install.sh" "${RAMDISK_PATH}/addons/${ADDON}.sh" 2>"${LOG_FILE}" || dieLog chmod +x "${RAMDISK_PATH}/addons/${ADDON}.sh" - [ -d ${TMP_PATH}/${ADDON}/root ] && (cp -rnf "${TMP_PATH}/${ADDON}/root/"* "${RAMDISK_PATH}/" 2>"${LOG_FILE}" || dieLog) + [ -d ${TMP_PATH}/${ADDON}/root ] && (cp -rf "${TMP_PATH}/${ADDON}/root/"* "${RAMDISK_PATH}/" 2>"${LOG_FILE}" || dieLog) rm -rf "${TMP_PATH}/${ADDON:?}" return 0 }