fix bug of ! near check of system.

This commit is contained in:
huni 2023-08-24 23:24:26 +08:00
parent 19dd71eb05
commit 925d28495a
1 changed files with 1 additions and 1 deletions

View File

@ -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