From d3d6ec8b209a112c002935ca4fbee075553fdef5 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Sat, 4 Jan 2025 20:11:24 +0100 Subject: [PATCH] Update 5etools.sh --- ct/5etools.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ct/5etools.sh b/ct/5etools.sh index 135119f9..b0a0df27 100644 --- a/ct/5etools.sh +++ b/ct/5etools.sh @@ -45,6 +45,7 @@ function update_script() { # Execute Update msg_info "Updating base 5etools" + cd /opt wget -q "https://github.com/5etools-mirror-3/5etools-src/archive/refs/tags/${RELEASE}.zip" unzip -q "${RELEASE}.zip" mv "/opt/${APP}/img" "/opt/img-backup" @@ -93,7 +94,8 @@ function update_script() { # Cleaning up msg_info "Cleaning Up" - rm "${IMG_RELEASE}.zip" + rm -rf /opt/${RELEASE}.zip + rm -rf ${IMG_RELEASE}.zip $STD apt-get -y autoremove $STD apt-get -y autoclean msg_ok "Cleanup Completed"