From e7562bf01f5baee2768f2655c715a5595f30eff8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=96=9F=E9=85=8C=20=E9=B5=AC=E5=85=84?= Date: Mon, 15 Aug 2022 21:56:55 +0800 Subject: [PATCH] Fixed unary operator error --- bash/rbashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bash/rbashrc b/bash/rbashrc index 0789e55..5397b09 100644 --- a/bash/rbashrc +++ b/bash/rbashrc @@ -20,7 +20,7 @@ RHOSTNAME="" RDOMAIN="" RCOLOR="" -if [ $RHOSTNAME == "" ]; then +if [ "$RHOSTNAME" == "" ]; then RHOSTNAME="\u" RDOMAIN="@"$( hostname -s ) RCOLOR=$(( $RANDOM * 6 / 32767 + 1 ))