Fix broken IFS in read loop and harden JSON separator flags The two container-reading loops had a mangled IFS assignment: while IFS=$ \t' read -r cid cname cimage; do The intended $'\n\t' had collapsed into a literal newline, so bash parsed "IFS=" as a standalone empty assignment and then treated "\t' read -r cid cname cimage; do ...'" as a command name, swallowing the loop body into an unterminated quote. The result was still valid syntax (bash -n passes), so the script failed silently: text mode printed nothing and exited 0, --json printed "{" and a bogus command-not-found while still exiting 0. Also: - Use [[ $first_container == true ]] / [[ $first_pair == true ]] instead of relying on `true`/`false` binaries existing to be invoked as commands. - Correct the header and usage text, which referred to the script as container-envs.sh rather than secrets.sh. - Extend the usage() sed range from 2,13 to 2,16 so the Notes section is no longer truncated mid-sentence. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
fix
first script
Initial commit