1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2024-11-05 06:39:02 -08:00

consolidate repo lines in obtain

This commit is contained in:
Connor Olding 2024-07-04 10:48:34 -07:00
parent b9f2ea6f0d
commit 46220efc84

View file

@ -57,13 +57,7 @@ __obtain() {
if [ -d /C ]; then
[ "$arch" = x86_64 ] || __obtain_die "only x86_64 Windows is supported"
repo=https://bin.ajam.dev/x64_Windows/
arch=exe
else
case "$arch" in
(aarch64) repo=https://bin.ajam.dev/aarch64_arm64_Linux/;;
(x86_64) repo=https://bin.ajam.dev/x86_64_Linux/;;
esac
fi
umask 0077 && mkdir -p ~/play/bootstrap && cd ~/play/bootstrap ||
@ -79,6 +73,12 @@ __obtain() {
(*) __obtain_die "invalid value for \$arch: $arch"
esac
case "$arch" in
(exe) repo=https://bin.ajam.dev/x64_Windows/;;
(aarch64) repo=https://bin.ajam.dev/aarch64_arm64_Linux/;;
(x86_64) repo=https://bin.ajam.dev/x86_64_Linux/;;
esac
echo "$sum" \*minisign > minisign.sha256 &&
sha256sum -c minisign.sha256 >/dev/null ||
__obtain_die "failed to validate minisign"