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
commit556047dffa810da957ef8fc5dc8d266fbc05aaee (patch)
treed341377df14578f18bf1f04c2ceed3cfb6c454c1 /tool/aio.py
parent443755456befad9116d1d584cbabf5ef4542b6a7 (diff)
downloadcrupest-556047dffa810da957ef8fc5dc8d266fbc05aaee.tar.gz
crupest-556047dffa810da957ef8fc5dc8d266fbc05aaee.tar.bz2
crupest-556047dffa810da957ef8fc5dc8d266fbc05aaee.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