aboutsummaryrefslogtreecommitdiff
path: root/tool/aio.py
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-11-27 16:53:31 +0800
committercrupest <crupest@outlook.com>2022-11-27 16:53:31 +0800
commit0b0f6245fabad93b249b5049a9df43d23665e151 (patch)
treed341377df14578f18bf1f04c2ceed3cfb6c454c1 /tool/aio.py
parent1874c4f86f5db65fefef18ab8a7df8f12696753b (diff)
downloadcrupest-0b0f6245fabad93b249b5049a9df43d23665e151.tar.gz
crupest-0b0f6245fabad93b249b5049a9df43d23665e151.tar.bz2
crupest-0b0f6245fabad93b249b5049a9df43d23665e151.zip
Fix check_ubuntu.
Diffstat (limited to 'tool/aio.py')
-rwxr-xr-xtool/aio.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tool/aio.py b/tool/aio.py
index debcd68..cddd814 100755
--- a/tool/aio.py
+++ b/tool/aio.py
@@ -122,9 +122,9 @@ def check_ubuntu():
else:
with open("/etc/os-release", "r") as f:
content = f.read()
- if re.match(r"NAME=\"?Ubuntu\"?", content, re.IGNORECASE) is None:
+ if re.search(r"NAME=\"?Ubuntu\"?", content, re.IGNORECASE) is None:
return False
- if re.match(r"UBUNTU_CODENAME=\"?jammy\"?", re.IGNORECASE) is None:
+ if re.search(r"VERSION_ID=\"?22.04\"?", content, re.IGNORECASE) is None:
return False
return True