arc: only force copy if old dsm files are not found

Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
AuxXxilium
2024-05-12 16:23:28 +02:00
parent 0dfb6fcfa6
commit e4b10cd719

View File

@@ -770,15 +770,17 @@ function make() {
fi
fi
# Copy DSM Files to Locations if DSM Files not found
if copyDSMFiles "${UNTAR_PAT_PATH}"; then
dialog --backtitle "$(backtitle)" --title "DSM Copy" --aspect 18 \
--infobox "DSM Copy successful!" 0 0
rm -rf "${UNTAR_PAT_PATH}"
else
dialog --backtitle "$(backtitle)" --title "DSM Copy" --aspect 18 \
--infobox "DSM Copy failed!\nExit." 0 0
sleep 5
return 1
if [ ! -f "${ORI_ZIMAGE_FILE}" ] || [ ! -f "${ORI_RDGZ_FILE}" ]; then
if copyDSMFiles "${UNTAR_PAT_PATH}"; then
dialog --backtitle "$(backtitle)" --title "DSM Copy" --aspect 18 \
--infobox "DSM Copy successful!" 0 0
rm -rf "${UNTAR_PAT_PATH}"
else
dialog --backtitle "$(backtitle)" --title "DSM Copy" --aspect 18 \
--infobox "DSM Copy failed!\nExit." 0 0
sleep 5
return 1
fi
fi
(
livepatch