From 263ead47f725a76e596d52257e4db2b843418e1a Mon Sep 17 00:00:00 2001 From: Elara Musayelyan Date: Tue, 15 Aug 2023 13:11:51 -0700 Subject: [PATCH] Add a way to force build a container --- build.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build.sh b/build.sh index bc012f3..e3bfcee 100755 --- a/build.sh +++ b/build.sh @@ -33,6 +33,11 @@ for file in $changed_files; do fi done +# Check if FORCE_BUILD is set and add the directory inside to changed_directories if it is +if [ -n "${FORCE_BUILD}" ]; then + changed_directories["${FORCE_BUILD}"]=1 +fi + if [[ "${#changed_directories[@]}" == 0 ]]; then info "Nothing to do. Exiting..." exit 0