Skip to content

Commit

Permalink
chore(scripts): run apt update on apt based distro
Browse files Browse the repository at this point in the history
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
  • Loading branch information
haruue committed Mar 30, 2024
1 parent 15963d1 commit efcc08b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/install_dkms.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit efcc08b

Please sign in to comment.