Update helpers/go

Co-authored-by: Alexandre Aubin <4533074+alexAubin@users.noreply.github.com>
This commit is contained in:
eric_G 2024-05-15 08:16:52 +02:00 committed by GitHub
parent 2744fed552
commit 915788d53f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -214,7 +214,7 @@ ynh_remove_go () {
ynh_cleanup_go () {
# List required Go versions
local installed_apps=$(yunohost app list | grep -oP 'id: \K.*$')
local installed_apps=$(yunohost app list --output-as json --quiet | jq -r .apps[].id)
local required_go_versions=""
for installed_app in $installed_apps
do