Shell ! escaping breaks shebangs via SSH
Writing scripts via SSH heredoc — zsh/bash escapes `!` in `#!/bin/bash` to `#\!/bin/bash`. Write to local temp file first, then scp + pct push.
Even inside single-quoted heredocs, the local shell may escape `!`.
Discovered during FileBot deployment (2026-03-10).
Affected entities:FileBot