bins/sfetch: fix handling of bsd files

This commit is contained in:
Aaron Bieber 2022-11-03 12:22:47 -06:00
parent 11add5ecf6
commit 8c82710d69
No known key found for this signature in database

View File

@ -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"