From 46220efc84b8b0cd8646ad2ccd305e35e83fd4be Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Thu, 4 Jul 2024 10:48:34 -0700 Subject: [PATCH] consolidate repo lines in `obtain` --- sh/obtain | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/sh/obtain b/sh/obtain index dd933cd..d2dda4a 100755 --- a/sh/obtain +++ b/sh/obtain @@ -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"