From 996196c608ea03e57e096a33d1343db58bbdd967 Mon Sep 17 00:00:00 2001 From: Ing Date: Sat, 22 Feb 2025 11:34:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20rm=20=E5=91=BD=E4=BB=A4?= =?UTF-8?q?=EF=BC=8C=E7=BB=9F=E4=B8=80=E4=BD=BF=E7=94=A8=20-rf=20=E9=80=89?= =?UTF-8?q?=E9=A1=B9=E4=BB=A5=E6=8F=90=E9=AB=98=E4=BB=A3=E7=A0=81=E4=B8=80?= =?UTF-8?q?=E8=87=B4=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- files/initrd/opt/rr/menu.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/files/initrd/opt/rr/menu.sh b/files/initrd/opt/rr/menu.sh index 553f175b..55a2bb7a 100755 --- a/files/initrd/opt/rr/menu.sh +++ b/files/initrd/opt/rr/menu.sh @@ -3441,7 +3441,7 @@ function updateRR() { SIZEOLD=0 while IFS=': ' read -r KEY VALUE; do if [ "${KEY: -1}" = "/" ]; then - rm -Rf "${TMP_PATH}/update/${VALUE}" + rm -rf "${TMP_PATH}/update/${VALUE}" mkdir -p "${TMP_PATH}/update/${VALUE}" tar -zxf "${TMP_PATH}/update/$(basename "${KEY}").tgz" -C "${TMP_PATH}/update/${VALUE}" >"${LOG_FILE}" 2>&1 if [ $? -ne 0 ]; then @@ -3487,7 +3487,7 @@ function updateRR() { # Process update-list.yml while read -r F; do [ -f "${F}" ] && rm -f "${F}" - [ -d "${F}" ] && rm -Rf "${F}" + [ -d "${F}" ] && rm -rf "${F}" done <<<$(readConfigArray "remove" "${TMP_PATH}/update/update-list.yml") while IFS=': ' read -r KEY VALUE; do if [ "${KEY: -1}" = "/" ]; then @@ -3573,7 +3573,7 @@ function updateAddons() { return 1 fi - rm -Rf "${ADDONS_PATH}/"* + rm -rf "${ADDONS_PATH}/"* cp -rf "${TMP_PATH}/update/"* "${ADDONS_PATH}/" rm -rf "${TMP_PATH}/update" touch ${PART1_PATH}/.build