File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 46
46
RESPONSE=" $( mktemp) "
47
47
EVENT_DATA=$( curl -sS -LD " $HEADERS " -X GET " http://${AWS_LAMBDA_RUNTIME_API} /${RUNTIME_PATH} /invocation/next" )
48
48
REQUEST_ID=$( grep -Fi Lambda-Runtime-Aws-Request-Id " $HEADERS " | tr -d ' [:space:]' | cut -d: -f2)
49
- # export PYTHONPATH="/var/task/bin/site-packages"
50
49
# Export some additional context
51
50
export AWS_LAMBDA_REQUEST_ID=$REQUEST_ID
52
51
export AWS_LAMBDA_DEADLINE_MS=$( grep -Fi Lambda-Runtime-Deadline-Ms " $HEADERS " | tr -d ' [:space:]' | cut -d: -f2)
66
65
sendRuntimeError " $REQUEST_ID " " Exited with code $EXIT_CODE " " RuntimeErrorException" " $( cat $RESPONSE ) "
67
66
fi
68
67
# Clean up
69
- rm -f $HEADERS
70
- rm -f $RESPONSE
68
+ rm -f -- " $HEADERS "
69
+ rm -f -- " $RESPONSE "
71
70
done
You can’t perform that action at this time.
0 commit comments