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
This commit is contained in:
flindeberg
2021-04-03 21:00:46 +02:00
committed by GitHub
parent 4715ac2352
commit 2aafc4a691

View File

@@ -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