diff --git a/nvidia-inst/PKGBUILD b/nvidia-inst/PKGBUILD index 0ba1f2b9..c22361be 100644 --- a/nvidia-inst/PKGBUILD +++ b/nvidia-inst/PKGBUILD @@ -4,7 +4,7 @@ pkgname=nvidia-inst pkgver=23 -pkgrel=9 +pkgrel=10 pkgdesc="Script to setup nvidia drivers (dkms version) in EndeavourOS" url=https://github.com/endeavouros-team/PKGBUILDS/tree/master/$pkgname _url=https://raw.githubusercontent.com/endeavouros-team/PKGBUILDS/master/$pkgname @@ -26,7 +26,7 @@ source=( $_url/$pkgname $_url/$pkgname.bash-completion ) -sha512sums=('56c80d2c481a2c693633abc2a66b0941d2fb410e93b2faacfea8f9c5754a2e7793e340fe12bbddee4364935a48cd8d055d17e94a41b3fefa8d67b6c0c1609be3' +sha512sums=('2affeac964997844831d85531011ddb5ba8ab926b7aa1568ee782900a5f6f0b5ffa50746a97a0e83a9f43ce700e23f4d43205446f6c047982e0091cba3155e85' 'b8857ff98870ac8cff78e31c660bde3b7308752ee4e6547682340866ee59f5801f09ede41e490380a40926536f47259f5d347fd59e8e2ffa67a8cb57f07c44e6') package() { diff --git a/nvidia-inst/nvidia-inst b/nvidia-inst/nvidia-inst index 91b93e8b..1f6b1853 100755 --- a/nvidia-inst/nvidia-inst +++ b/nvidia-inst/nvidia-inst @@ -576,6 +576,7 @@ Main() fi Options "$@" + local -r latest_arch_version_full=$(expac -S %v nvidia-dkms) [ -n "$series_now" ] || series_now=$(GetSeriesFromPacman) @@ -584,8 +585,6 @@ Main() SanityChecks local all_installed_packages="$(expac -Q %n)" - local -r latest_arch_version_full=$(expac -S %v nvidia-dkms) - local -r latest_from_arch=$(echo "$latest_arch_version_full" | cut -d '.' -f1) if [ "$latest_from_arch" != "$series_now" ] ; then Warn "Series $series_now is no more the latest in Arch but $latest_from_arch is. Results may not be accurate."