From 8a706f6f3dd3c483f37db79aa777207faa14c97b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=AC=E5=93=A5=E4=BE=83=E4=BE=83=E4=BE=83ygkkk?= <121604513+yonggekkk@users.noreply.github.com> Date: Thu, 16 Jan 2025 14:47:33 +0800 Subject: [PATCH] Update kp.sh --- kp.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/kp.sh b/kp.sh index 73354cf..17a72a7 100644 --- a/kp.sh +++ b/kp.sh @@ -35,6 +35,7 @@ opkg install sshpass curl jq else if [ -f /etc/debian_version ]; then package_manager="apt-get install -y" + apt-get update >/dev/null 2>&1 elif [ -f /etc/redhat-release ]; then package_manager="yum install -y" elif [ -f /etc/fedora-release ]; then