mirror of
https://github.com/AuxXxilium/arc.git
synced 2024-11-24 04:39:52 +07:00
arc: force copy files while build
Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
parent
bf7c53bc4d
commit
e461f25cf7
@ -415,9 +415,9 @@ function arcVersion() {
|
|||||||
MSG+="Press OK to continue!"
|
MSG+="Press OK to continue!"
|
||||||
dialog --backtitle "$(backtitle)" --title "DSM Upload" --aspect 18 \
|
dialog --backtitle "$(backtitle)" --title "DSM Upload" --aspect 18 \
|
||||||
--msgbox "${MSG}" 9 80
|
--msgbox "${MSG}" 9 80
|
||||||
|
# Grep PAT_FILE
|
||||||
|
PAT_FILE=$(ls ${USER_UP_PATH}/*.pat | head -n 1)
|
||||||
fi
|
fi
|
||||||
# Grep PAT_FILE
|
|
||||||
PAT_FILE=$(ls ${USER_UP_PATH}/*.pat | head -n 1)
|
|
||||||
if [ -f "${PAT_FILE}" ] && [ $(wc -c "${PAT_FILE}" | awk '{print $1}') -gt 300000000 ]; then
|
if [ -f "${PAT_FILE}" ] && [ $(wc -c "${PAT_FILE}" | awk '{print $1}') -gt 300000000 ]; then
|
||||||
dialog --backtitle "$(backtitle)" --title "DSM Upload" --aspect 18 \
|
dialog --backtitle "$(backtitle)" --title "DSM Upload" --aspect 18 \
|
||||||
--infobox "DSM Image found!" 3 40
|
--infobox "DSM Image found!" 3 40
|
||||||
@ -452,10 +452,8 @@ function arcVersion() {
|
|||||||
VALID="false"
|
VALID="false"
|
||||||
sleep 5
|
sleep 5
|
||||||
fi
|
fi
|
||||||
# Copy DSM Files to Locations if DSM Files not found
|
# Copy DSM Files to Locations
|
||||||
if [ ! -f "${ORI_ZIMAGE_FILE}" ] || [ ! -f "${ORI_RDGZ_FILE}" ]; then
|
[ "${VALID}" == "true" ] && copyDSMFiles "${UNTAR_PAT_PATH}" 2>/dev/null
|
||||||
[ "${VALID}" == "true" ] && copyDSMFiles "${UNTAR_PAT_PATH}" 2>/dev/null
|
|
||||||
fi
|
|
||||||
# Cleanup
|
# Cleanup
|
||||||
[ -d "${UNTAR_PAT_PATH}" ] && rm -rf "${UNTAR_PAT_PATH}"
|
[ -d "${UNTAR_PAT_PATH}" ] && rm -rf "${UNTAR_PAT_PATH}"
|
||||||
if [ "${VALID}" == "true" ] && [ -f "${ORI_ZIMAGE_FILE}" ] && [ -f "${ORI_RDGZ_FILE}" ]; then
|
if [ "${VALID}" == "true" ] && [ -f "${ORI_ZIMAGE_FILE}" ] && [ -f "${ORI_RDGZ_FILE}" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user