Although the script starts with `set -e` it also has:
update-alternatives --query mpi | grep --silent libmpi if [ $? -eq 0 ] ; then
Checking the status of a command afterward isn't going to work, since the `set -e` will cause the script to abort before the if statement is reached. That should be:
if update-alternatives --query mpi | grep --silent libmpi then
signature.asc
Description: PGP signature