This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| # Fetch the list of toolbox container names (skip header row) | |
| containers=$(toolbox list --containers 2>/dev/null | awk 'NR>1 {print $2}') | |
| if [[ -z "${containers}" ]]; then | |
| echo "No toolbox containers found." | |
| exit 0 | |
| fi |