Skip to content

Commit

Permalink
fix bug of ! near check of system.
Browse files Browse the repository at this point in the history
  • Loading branch information
huhuhuni committed Aug 24, 2023
1 parent 19dd71e commit 925d284
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 925d284

Please sign in to comment.