mirror of
https://github.com/Yidadaa/ChatGPT-Next-Web.git
synced 2025-08-19 19:35:08 +08:00
fix bug of ! near check of system.
This commit is contained in:
@@ -10,7 +10,7 @@ case "$(uname -s)" in
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
else
|
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."
|
echo "Unsupported Linux distribution."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user