From 8c82710d692cbbdc99aca00ff239a605b407234b Mon Sep 17 00:00:00 2001 From: Aaron Bieber Date: Thu, 3 Nov 2022 12:22:47 -0600 Subject: [PATCH] bins/sfetch: fix handling of bsd files --- bins/sfetch.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bins/sfetch.nix b/bins/sfetch.nix index 6517c86..9aa96f8 100644 --- a/bins/sfetch.nix +++ b/bins/sfetch.nix @@ -7,8 +7,8 @@ SERVER=cdn.openbsd.org ITEM=$1 - MACHINE=amd64 - V=$(echo $ITEM | sed 's/[^0-9]//g') + MACHINE=''${2:-amd64} + V="72" [[ ! -z $2 ]] && MACHINE=$2 ${curl}/bin/curl -s -o "$PWD/$ITEM" "https://$SERVER/pub/OpenBSD/snapshots/$MACHINE/$ITEM" && \ ${curl}/bin/curl -s -o "$PWD/SHA256.sig" "https://$SERVER/pub/OpenBSD/snapshots/$MACHINE/SHA256.sig"