Skip to content

refactor: simplify container_exec, fix set -e bug and grep-c noise#1

Merged
KrakoX merged 1 commit intomainfrom
refactor/simplify-container-exec
Mar 20, 2026
Merged

refactor: simplify container_exec, fix set -e bug and grep-c noise#1
KrakoX merged 1 commit intomainfrom
refactor/simplify-container-exec

Conversation

@KrakoX
Copy link
Copy Markdown
Owner

@KrakoX KrakoX commented Mar 20, 2026

Summary

  • Merge container_exec_i into container_exec — pass -i as optional first arg; removes duplicate function
  • cleanup() uses container_exec instead of hardcoded docker exec/kubectl exec branching
  • Fix set -e bug in get_package_requirements: standalone container_exec bash -c "..." made the else error branch unreachable — moved into if condition
  • Fix docker inspect | grep -q true → exact == "true" comparison
  • Fix grep -c || echo "0" double-output artifact; remove 4-line tr -d post-processing block

- Merge container_exec_i into container_exec (-i as optional first arg)
- cleanup() now uses container_exec instead of duplicated platform branch
- Fix set -e bug in get_package_requirements: standalone container_exec
  call made the else error branch unreachable; moved into if condition
- Fix docker inspect | grep -q true: replace with exact == "true" compare
- Fix grep -c || echo "0" double-output; remove redundant tr -d cleanup
@KrakoX KrakoX merged commit 6000c6c into main Mar 20, 2026
4 checks passed
@KrakoX KrakoX deleted the refactor/simplify-container-exec branch March 20, 2026 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant