From 300e877b3a43f810277740835a8fb474090fc5ea Mon Sep 17 00:00:00 2001 From: Micke Nordin Date: Wed, 22 Nov 2023 11:01:52 +0100 Subject: [PATCH] Make curl silent --- templates/script/announce.erb.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/script/announce.erb.sh b/templates/script/announce.erb.sh index d9ae874..3bdbf90 100755 --- a/templates/script/announce.erb.sh +++ b/templates/script/announce.erb.sh @@ -69,7 +69,7 @@ curl_cmd(){ fi local admin_app_password="<%= @admin_app_password %>" domain="$(hostname -d)" - curl -X "${method}" -u "admin:${admin_app_password}" "${payload[@]}" -H 'OCS-APIRequest: true' "https://${domain}/ocs/v2.php/apps/announcementcenter/api/v1/announcements${id}" + curl -s -X "${method}" -u "admin:${admin_app_password}" "${payload[@]}" -H 'OCS-APIRequest: true' "https://${domain}/ocs/v2.php/apps/announcementcenter/api/v1/announcements${id}" } curl_cmd "${method}" "${argument}"