Revert "Disable trap during execution of gitea script api.sh" 74/14574/1
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Thu, 19 Sep 2024 10:39:07 +0000 (12:39 +0200)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Thu, 19 Sep 2024 10:42:19 +0000 (12:42 +0200)
This reverts commit 9059f35240e787598d699a8a76be23c42711362d.

Change-Id: Ia1ad639911a83d6e1adb794716216451ed0f8371
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
installers/mgmt-cluster/gitea/admin/api.sh

index 7c389d4..2c635cc 100755 (executable)
@@ -22,13 +22,9 @@ 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