Fixed unary operator error

This commit is contained in:
斟酌 鵬兄 2022-08-15 21:56:55 +08:00
parent d9a5f57aaa
commit e7562bf01f

View File

@ -20,7 +20,7 @@ RHOSTNAME="<HOSTNAME>"
RDOMAIN="<DOMAIN>"
RCOLOR="<RCOLOR>"
if [ $RHOSTNAME == "<HOSTNAME"">" ]; then
if [ "$RHOSTNAME" == "<HOSTNAME"">" ]; then
RHOSTNAME="\u"
RDOMAIN="@"$( hostname -s )
RCOLOR=$(( $RANDOM * 6 / 32767 + 1 ))