From 026f7d093f5cd0dcd48da19ed210875c9acd6c14 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Fri, 1 Sep 2023 15:41:53 -0400 Subject: [PATCH] Correct escaping in issue-gen --- install.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 2cf8cc3..0691dca 100755 --- a/install.sh +++ b/install.sh @@ -290,8 +290,11 @@ echo "done." echo -n "Setting /etc/issue generator... " echo -e "#!/bin/sh -IP="\$\( ip addr show dev ${target_interface} | grep inet | awk \'\{ print \$2 \}\' \)" -echo -e \"Debian GNU/Linux 10 \\n \\l\n\nPrimary interface IP address: \$IP\n\" > /etc/issue" | tee ${target}/etc/if-up.d/issue-gen >&2 +IP=\"\$( ip -4 addr show dev ${target_interface} | grep inet | awk '{ print \$2 }' | head -1 )\" +echo \"Debian GNU/Linux 10 \\\\n \\\\l + +Primary interface IP address: \$IP +\" > /etc/issue" | tee ${target}/etc/if-up.d/issue-gen >&2 chmod +x ${target}/etc/if-up.d/issue-gen 1>&2 echo "done."