deploy-docs: fix undefined variable

This commit is contained in:
Jörg Thalheim 2024-04-19 13:54:01 +02:00 committed by Mic92
parent 81f7237a41
commit 8d74983103

View File

@ -17,7 +17,7 @@ writeShellScriptBin "deploy-docs" ''
]
}"
if [ -n "$SSH_HOMEPAGE_KEY" ]; then
if [ -n "''${SSH_HOMEPAGE_KEY:-}" ]; then
echo "$SSH_HOMEPAGE_KEY" > ./ssh_key
chmod 600 ./ssh_key
sshExtraArgs="-i ./ssh_key"