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
pull/39/head
flindeberg 3 years ago committed by GitHub
parent 4715ac2352
commit 2aafc4a691
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save