From efcc08b936dec95a7f4645bb82d501784b21b156 Mon Sep 17 00:00:00 2001 From: Haruue Date: Sat, 30 Mar 2024 22:24:35 +0800 Subject: [PATCH] chore(scripts): run apt update on apt based distro I have tested that other supported Linux distributions do not need this. dnf/yum/zypper: update metadata regularly by default pacman: run with -Sy so metadata is always updated close: #16 --- scripts/install_dkms.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/install_dkms.sh b/scripts/install_dkms.sh index a801278..6d45eb2 100755 --- a/scripts/install_dkms.sh +++ b/scripts/install_dkms.sh @@ -158,6 +158,7 @@ detect_package_manager() { fi if has_command apt; then + apt update PACKAGE_MANAGEMENT_INSTALL='apt -y --no-install-recommends install' return 0 fi