From c19f653daf3e2f5fe1824049d99eed097e57d6b7 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Fri, 1 Sep 2023 15:42:20 -0400 Subject: [PATCH] Replace the square bracket with bracket --- roles/base/templates/usr/local/sbin/update-motd.sh.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/base/templates/usr/local/sbin/update-motd.sh.j2 b/roles/base/templates/usr/local/sbin/update-motd.sh.j2 index dd1cb0b..a23412c 100755 --- a/roles/base/templates/usr/local/sbin/update-motd.sh.j2 +++ b/roles/base/templates/usr/local/sbin/update-motd.sh.j2 @@ -7,10 +7,10 @@ set -o errexit TMPFILE=$(mktemp) TGTFILE=/run/pvc-motd.dynamic -DEBVER="[$( grep 'PRETTY_NAME=' /etc/os-release | awk -F'"' '{ print $2 }' )]" +DEBVER="$( grep 'PRETTY_NAME=' /etc/os-release | awk -F'"' '{ print $2 }' )" echo >> $TMPFILE -echo "\033[01;34mParallel Virtual Cluster \033[01;36m${DEBVER}\033[0m" >> $TMPFILE +echo "\033[01;34mParallel Virtual Cluster \033[01;36m(${DEBVER})\033[0m" >> $TMPFILE echo -n "> \033[01;32m$(hostname)\033[0m" >> $TMPFILE if test -f /etc/hostdesc; then echo " - $( cat /etc/hostdesc )" >> $TMPFILE