Disable trap during execution of gitea script api.sh 70/14570/1
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Mon, 16 Sep 2024 15:29:37 +0000 (17:29 +0200)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Wed, 18 Sep 2024 07:07:02 +0000 (09:07 +0200)
Change-Id: I972535b529499c3fc0138c2b0cfe8c45abce002f
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
installers/mgmt-cluster/gitea/admin/api.sh

index 2c635cc..7c389d4 100755 (executable)
@@ -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