Skip to content

Commit 299dad9

Browse files
committed
Fix(aws): Exit code handling bug
1 parent f49dc96 commit 299dad9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

aws/docker_and_sync.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ echo "📅 Container built at: $BUILD_TIMESTAMP"
1515

1616
# Function to sync logs on exit
1717
cleanup() {
18+
local exit_code=$?
1819
echo "═══════════════════════════════════════════════════════════════════════════════"
1920
echo "Cleanup stage of docker_and_sync.sh"
2021
echo "═══════════════════════════════════════════════════════════════════════════════"
21-
local exit_code=$?
2222
# Ensure cleanup failures do not clobber the original exit code
2323
set +e
2424
if [ -n "$(ls -A logs/ 2>/dev/null)" ]; then

0 commit comments

Comments
 (0)