fix: unbound variable error by defaulting SSH_ORIGINAL_COMMAND when unset

This commit is contained in:
null 2025-05-17 16:36:06 +00:00
parent 707889ef63
commit cfc10e0acd

View File

@ -82,7 +82,7 @@ ensure_image
# ─────────────────────────────────────────────
# Disallow file transfers
case "$SSH_ORIGINAL_COMMAND" in
case "${SSH_ORIGINAL_COMMAND:-}" in
*scp* | *sftp* | *rsync* | *tar*)
log ERROR "File transfers are disabled"
exit 1