Rework manifest update to avoid relying on sponge

Co-authored-by: Kayou <pierre@kayou.io>
This commit is contained in:
tituspijean 2021-09-16 09:40:02 +02:00 committed by GitHub
parent ff501e4484
commit ecc2d84031
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -119,11 +119,8 @@ done
# GENERIC FINALIZATION
#=================================================
# Install moreutils, needed for sponge
sudo apt-get install moreutils
# Replace new version in manifest
jq -s --indent 4 ".[] | .version = \"$version~ynh1\"" manifest.json | sponge manifest.json
echo "$(jq -s --indent 4 ".[] | .version = \"$version~ynh1\"" manifest.json)" > manifest.json
# No need to update the README, yunohost-bot takes care of it