From 4766d6389eebdca10a783c95b98ce42be7b9e80a Mon Sep 17 00:00:00 2001 From: garciadeblas Date: Mon, 16 Sep 2024 17:29:37 +0200 Subject: [PATCH] Disable trap during execution of gitea script api.sh Change-Id: I972535b529499c3fc0138c2b0cfe8c45abce002f Signed-off-by: garciadeblas --- installers/mgmt-cluster/gitea/admin/api.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/installers/mgmt-cluster/gitea/admin/api.sh b/installers/mgmt-cluster/gitea/admin/api.sh index 2c635cc8..7c389d40 100755 --- a/installers/mgmt-cluster/gitea/admin/api.sh +++ b/installers/mgmt-cluster/gitea/admin/api.sh @@ -22,9 +22,13 @@ set -ex HERE=$(dirname "$(readlink --canonicalize "$BASH_SOURCE")") . "$HERE/../library/functions.sh" -. "$HERE/../library/trap.sh" +# . "$HERE/../library/trap.sh" . "$HERE/../library/helpers.sh" +# Disable trap in this script +trap - INT +trap - EXIT + SERVER_URL=$1 TOKEN=$2 VERB=$3 -- 2.25.1