bins/sfetch: fix handling of bsd files
This commit is contained in:
parent
11add5ecf6
commit
8c82710d69
@ -7,8 +7,8 @@
|
|||||||
|
|
||||||
SERVER=cdn.openbsd.org
|
SERVER=cdn.openbsd.org
|
||||||
ITEM=$1
|
ITEM=$1
|
||||||
MACHINE=amd64
|
MACHINE=''${2:-amd64}
|
||||||
V=$(echo $ITEM | sed 's/[^0-9]//g')
|
V="72"
|
||||||
[[ ! -z $2 ]] && MACHINE=$2
|
[[ ! -z $2 ]] && MACHINE=$2
|
||||||
${curl}/bin/curl -s -o "$PWD/$ITEM" "https://$SERVER/pub/OpenBSD/snapshots/$MACHINE/$ITEM" && \
|
${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"
|
${curl}/bin/curl -s -o "$PWD/SHA256.sig" "https://$SERVER/pub/OpenBSD/snapshots/$MACHINE/SHA256.sig"
|
||||||
|
Loading…
Reference in New Issue
Block a user