diff options
author | Stefan Kreutz <mail@skreutz.com> | 2023-11-24 23:31:53 +0100 |
---|---|---|
committer | Stefan Kreutz <mail@skreutz.com> | 2023-11-24 23:31:53 +0100 |
commit | ced85ddfe780fa938f703473a6e8f2230354541d (patch) | |
tree | 00bf96e3b650f1ce6fe6ee30d774b2d6eab0e4fa | |
parent | ad5ca72f31575ba9caedabd94365b47322543198 (diff) | |
download | openbsd-installiso-ced85ddfe780fa938f703473a6e8f2230354541d.tar |
Handle duplicate entries in checksum fileopenbsd-installiso-0.1.1
-rwxr-xr-x | installiso.ksh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/installiso.ksh b/installiso.ksh index f28a60e..24464ee 100755 --- a/installiso.ksh +++ b/installiso.ksh @@ -96,7 +96,7 @@ function fetch { ftp "$_ftp_options" -o "$tmp/SHA256.sig" "$_url/SHA256.sig" debug "Downloaded SHA256.sig" - _rel="$( sed -n 's/^SHA256 (install\([0-9][0-9]\).iso) = .*/\1/p' "$tmp/SHA256.sig" )" + _rel="$( sed -n 's/^SHA256 (install\([0-9][0-9]\).iso) = .*/\1/p' "$tmp/SHA256.sig" | head -n 1 )" _iso="install${_rel}.iso" _output="${_output:-"$_iso"}" |