From 2aafc4a691af66bea178873c96c57c901e47d26b Mon Sep 17 00:00:00 2001 From: flindeberg Date: Sat, 3 Apr 2021 21:00:46 +0200 Subject: [PATCH] Fixed cleanup when using "only update if newer" (#32) * Suggested solution for #30, only update if newer driver * Removed dependency on nvidia-smi, now uses pacman and 'nvidia-utils' as search string * small fix with added cleanup --- PKGBUILD | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/PKGBUILD b/PKGBUILD index 8cc1d15..a9b1e3a 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -156,7 +156,10 @@ if [[ "$_only_update_if_newer" == "true" ]]; then plain "If this is not intended, have a look at '"$where"/customization.cfg'" fi - # We shouldn't have done anything yet, so no cleanup needed? + # We have to clean up "options" + rm -f "${where}"/options + # TODO Do we need to clean up something more? + # TODO Should the exit_cleanup be called? (requires reorganization of script) exit 0 fi else