File tree Expand file tree Collapse file tree 3 files changed +10
-8
lines changed
Expand file tree Collapse file tree 3 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -391,7 +391,7 @@ rm -rf ${component_path}/.terraform;
391391
392392# Run global pre.sh
393393if [ -f " pre.sh" ]; then
394- source pre.sh " ${region} " " ${environment} " " ${action} " \
394+ bash pre.sh " ${region} " " ${environment} " " ${action} " \
395395 || error_and_die " Global pre script execution failed with exit code ${?} " ;
396396fi ;
397397
427427
428428# Run pre.sh
429429if [ -f " pre.sh" ]; then
430- source pre.sh " ${region} " " ${environment} " " ${action} " \
430+ bash pre.sh " ${region} " " ${environment} " " ${action} " \
431431 || error_and_die " Component pre script execution failed with exit code ${?} " ;
432432fi ;
433433
Original file line number Diff line number Diff line change 1- echo " Running app pre.sh"
1+ #! /usr/bin/env bash
2+
3+ set -euo pipefail
24
3- original_dir= $( pwd )
5+ echo " Running app pre.sh "
46
57cd $( git rev-parse --show-toplevel)
68
@@ -11,5 +13,3 @@ npm run generate-dependencies --workspaces --if-present
1113npm run lambda-build --workspaces --if-present
1214
1315$( git rev-parse --show-toplevel) /lambdas/layers/pdfjs/build.sh
14-
15- cd $original_dir
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ set -euo pipefail
4+
15REGION=$1
26ENVIRONMENT=$2
37ACTION=$3
@@ -10,7 +14,6 @@ echo "SKIP_SANDBOX_INSTALL=$SKIP_SANDBOX_INSTALL"
1014
1115
1216if [ " ${ACTION} " == " apply" ]; then
13- original_dir=$( pwd)
1417 cd $( git rev-parse --show-toplevel)
1518 echo " Building lambdas for distribution"
1619
@@ -27,7 +30,6 @@ if [ "${ACTION}" == "apply" ]; then
2730
2831 $( git rev-parse --show-toplevel) /lambdas/layers/pdfjs/build.sh
2932
30- cd $original_dir
3133else
3234 echo " Skipping lambda build for action $ACTION "
3335fi
You can’t perform that action at this time.
0 commit comments