Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated install-singularity.sh #112

Open
mih opened this issue Dec 21, 2022 · 0 comments
Open

Updated install-singularity.sh #112

mih opened this issue Dec 21, 2022 · 0 comments

Comments

@mih
Copy link
Member

mih commented Dec 21, 2022

I made a few changes to let it fail when it would not actually produce an installation. Maybe useful here too.

#!/bin/bash

set -e -u

release="$(curl -fsSL https://api.github.com/repos/sylabs/singularity/releases/latest | jq -r .tag_name)"
[ "${release}x" = "x" ] && echo "Failed to get latest singularity release name" && exit 1 || true
codename="$(lsb_release -cs)"
arch="$(dpkg --print-architecture)"
wget -O /tmp/singularity-ce.deb https://github.com/sylabs/singularity/releases/download/$release/singularity-ce_${release#v}-${codename}_$arch.deb
sudo dpkg -i /tmp/singularity-ce.deb
sudo apt-get install -f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant