Replace the square bracket with bracket
This commit is contained in:
parent
e3ed5675a9
commit
553f7c92f9
|
@ -7,10 +7,10 @@ set -o errexit
|
||||||
|
|
||||||
TMPFILE=$(mktemp)
|
TMPFILE=$(mktemp)
|
||||||
TGTFILE=/run/pvc-motd.dynamic
|
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 >> $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
|
echo -n "> \033[01;32m$(hostname)\033[0m" >> $TMPFILE
|
||||||
if test -f /etc/hostdesc; then
|
if test -f /etc/hostdesc; then
|
||||||
echo " - $( cat /etc/hostdesc )" >> $TMPFILE
|
echo " - $( cat /etc/hostdesc )" >> $TMPFILE
|
||||||
|
|
Loading…
Reference in New Issue