Skip to content

Commit 1694512

Browse files
committed
refactor: use _HANDLER variable instead of HANDLER in the bootstrap
1 parent 7d45623 commit 1694512

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

runtime/bootstrap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
set -eo pipefail
77

88
# Initialization - load function handler
9-
source $LAMBDA_TASK_ROOT/"$(echo $HANDLER | cut -d. -f1).sh"
9+
source $LAMBDA_TASK_ROOT/"$(echo $_HANDLER | cut -d. -f1).sh"
1010

1111
# Processing
1212
while true
@@ -19,7 +19,7 @@ do
1919
REQUEST_ID=$(grep -Fi Lambda-Runtime-Aws-Request-Id "$HEADERS" | tr -d '[:space:]' | cut -d: -f2)
2020

2121
# Run the handler function from the script
22-
RESPONSE=$($(echo "$HANDLER" | cut -d. -f2) "$EVENT_DATA")
22+
RESPONSE=$($(echo "$_HANDLER" | cut -d. -f2) "$EVENT_DATA")
2323

2424

2525
echo "$RESPONSE" | curl -sS -X POST \

0 commit comments

Comments
 (0)