From 925d28495af7b4d9f722da59fe97115c6898acb7 Mon Sep 17 00:00:00 2001 From: huni Date: Thu, 24 Aug 2023 23:24:26 +0800 Subject: [PATCH] fix bug of ! near check of system. --- scripts/setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/setup.sh b/scripts/setup.sh index 43af2b18..73ed61b1 100644 --- a/scripts/setup.sh +++ b/scripts/setup.sh @@ -10,7 +10,7 @@ case "$(uname -s)" in exit 1 fi else - if [[ ! "$(cat /etc/*-release | grep '^ID=')" =~ ^(ID=\"ubuntu\")|(ID=\"centos\")|(ID=\"arch\")|(ID=\"debian\")$ ]]; then + if [[ !"$(cat /etc/*-release | grep '^ID=')" =~ ^(ID=\"ubuntu\")|(ID=\"centos\")|(ID=\"arch\")|(ID=\"debian\")$ ]]; then echo "Unsupported Linux distribution." exit 1 fi