Closed bradclow closed 3 years ago
The current install.sh script always does the apt-get update and install, even if the packages are already installed. It is caused by the incorrect return statement in function package_installed. The redirect to /dev/null masks the error.
Also found that dpkg -l had a successful exit code even after a package has been removed. dpkg -s handled the situation better.
Tested on Ubuntu 20.04.2 LTS.
Also added the hashbang at the top for good form.
Removes the return statement that always causes the packages check to fail.
Recognises removed packages should be installed again.