Replace two chained POSIX `[ ]` with a single bash `[[ ]]` using `&&` inside the double brackets. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>