diff --git a/.github/workflows/release-host.yml b/.github/workflows/release-host.yml index f07486f..7054451 100644 --- a/.github/workflows/release-host.yml +++ b/.github/workflows/release-host.yml @@ -124,3 +124,4 @@ jobs: path: dist if-no-files-found: error compression-level: 0 + retention-days: 1 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2823ae9..e52a596 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -143,6 +143,7 @@ jobs: path: release-assets if-no-files-found: error compression-level: 0 + retention-days: 1 finalize_release: name: Finalize release diff --git a/scripts/install.sh b/scripts/install.sh index 0c1d482..fe862be 100644 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -61,7 +61,9 @@ component_field() { -v field="\"$4\": " ' index($0, kind) && index($0, os) && index($0, arch) { if (match($0, field "\"[^\"]*\"")) { - print substr($0, RSTART + length(field), RLENGTH - length(field) - 1) + value = substr($0, RSTART + length(field), RLENGTH - length(field)) + gsub(/^"|"$/, "", value) + print value exit } }