Skip to content

Commit 4b2214f

Browse files
authored
Merge pull request #14343 from Mab879/fix_13690
Adjust variables for banner_etc_issue
2 parents 40b8452 + a7567c7 commit 4b2214f

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

build-scripts/build_tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def _create_arg_parser() -> argparse.ArgumentParser:
4949

5050
def _write_path(file_contents: str, output_path: os.PathLike) -> None:
5151
with open(output_path, "w") as file:
52-
file.write(file_contents)
52+
file.write(file_contents.replace('&', '&'))
5353
file.write("\n")
5454

5555

linux_os/guide/system/accounts/accounts-banners/banner_etc_issue/bash/shared.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# platform = multi_platform_rhel,multi_platform_fedora,multi_platform_ol,multi_platform_rhv,multi_platform_sle,multi_platform_slmicro,multi_platform_ubuntu,multi_platform_almalinux
22

3-
login_banner_text='(bash-populate login_banner_text)'
3+
read -r -d '' login_banner_text <<'EOF' || true
4+
(bash-populate login_banner_text)
5+
EOF
46

57
# Multiple regexes transform the banner regex into a usable banner
68
# 0 - Remove anchors around the banner text

0 commit comments

Comments
 (0)