Skip to content

Commit 470ebe8

Browse files
committed
fix(bash): preserve line break before ssh client crypto-policy output path
Avoid Jinja whitespace trimming that concatenated a comment and the file assignment in harden_ssh_client_crypto_policy Bash remediation. This keeps 'file=...' on its own line and fixes shellcheck SC2154 in generated fixes.
1 parent 8e14e43 commit 470ebe8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • linux_os/guide/system/software/integrity/crypto/harden_ssh_client_crypto_policy/bash

linux_os/guide/system/software/integrity/crypto/harden_ssh_client_crypto_policy/bash/shared.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# platform = multi_platform_all
22

33
#the file starts with 02 so that it is loaded before the 05-redhat.conf which activates configuration provided by system vide crypto policy
4-
{{%- set sshc_crypto_policy_config = ssh_client_config_dir ~ "/02-ospp.conf" -%}}
4+
{{% set sshc_crypto_policy_config = ssh_client_config_dir ~ "/02-ospp.conf" %}}
55
file="{{{ sshc_crypto_policy_config }}}"
66
echo -e "Match final all\n\
77
RekeyLimit 512M 1h\n\

0 commit comments

Comments
 (0)