fix: unbound variable error by defaulting SSH_ORIGINAL_COMMAND when unset
This commit is contained in:
parent
707889ef63
commit
cfc10e0acd
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user