Skip to content

Commit 88dab0d

Browse files
SuperKaliigorpecovnik
authored andcommitted
json-generation: strip .tar.(xz|zst|gz) in strip_img_ext
Extend strip_img_ext so kernel-suffix parsing handles filenames using tar archive extensions (e.g. Arduino UNO Q images shipped as .tar.xz), matching the existing .img.(xz|zst|gz) behaviour. Refs: #277
1 parent 4c14439 commit 88dab0d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/generate-armbian-images-json.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ split_desktop_tail() {
366366
}
367367

368368
strip_img_ext() {
369-
sed -E 's/(\.img(\.(xz|zst|gz))?)$//' <<<"$1"
369+
sed -E 's/(\.img(\.(xz|zst|gz))?|\.tar\.(xz|zst|gz))$//' <<<"$1"
370370
}
371371

372372
extract_file_extension() {

0 commit comments

Comments
 (0)