update: use cp instead of mv

Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
AuxXxilium 2024-09-21 13:00:52 +02:00
parent c1299a469d
commit 90df8f1848

View File

@ -173,11 +173,11 @@ function updateLoader() {
echo "Download successful!"
unzip -oq "${TMP_PATH}/update.zip" -d "${TMP_PATH}"
echo "Installing new Loader Image..."
mv -f "${TMP_PATH}/grub.cfg" "${USER_GRUB_CONFIG}"
mv -f "${TMP_PATH}/ARC-VERSION" "${PART1_PATH}/ARC-VERSION"
mv -f "${TMP_PATH}/ARC-BRANCH" "${PART1_PATH}/ARC-BRANCH"
mv -f "${TMP_PATH}/bzImage-arc" "${ARC_BZIMAGE_FILE}"
mv -f "${TMP_PATH}/initrd-arc" "${ARC_RAMDISK_FILE}"
cp -f "${TMP_PATH}/grub.cfg" "${USER_GRUB_CONFIG}"
cp -f "${TMP_PATH}/ARC-VERSION" "${PART1_PATH}/ARC-VERSION"
cp -f "${TMP_PATH}/ARC-BRANCH" "${PART1_PATH}/ARC-BRANCH"
cp -f "${TMP_PATH}/bzImage-arc" "${ARC_BZIMAGE_FILE}"
cp -f "${TMP_PATH}/initrd-arc" "${ARC_RAMDISK_FILE}"
rm -f "${TMP_PATH}/update.zip"
echo "Update done!"
sleep 2