diff --git a/.github/workflows/updater.sh b/.github/workflows/updater.sh index 27acff7..239fae5 100644 --- a/.github/workflows/updater.sh +++ b/.github/workflows/updater.sh @@ -63,16 +63,16 @@ echo "Handling asset at $asset_url" # Here we base the source file name upon a unique keyword in the assets url (admin vs. update) # Leave $src empty to ignore the asset case $asset_url in - *"mattermost-v"$version"-linux-arm.tar.gz"*) + *"mattermost-"*"-linux-arm.tar.gz"*) src="arm" ;; - *"mattermost-v"$version"-linux-arm64.tar.gz"*) + *"mattermost-"*"-linux-arm64.tar.gz"*) src="arm64" ;; - *"mattermost-v"$version"-linux-amd64.tar.gz"*) + *"mattermost-"*"-linux-amd64.tar.gz"*) src="x86-64" ;; - *"mattermost-enterprise-"$version"-linux-amd64.tar.gz"*) + *"mattermost-enterprise-"*"-linux-amd64.tar.gz"*) src="entreprise" ;; esac @@ -126,9 +126,6 @@ done # GENERIC FINALIZATION #================================================= -# Install moreutils, needed for sponge -sudo apt-get install moreutils - # Replace new version in manifest echo "$(jq -s --indent 4 ".[] | .version = \"$version~ynh1\"" manifest.json)" > manifest.json