diff options
author | crupest <crupest@outlook.com> | 2022-11-27 16:53:31 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-11-27 16:53:31 +0800 |
commit | 556047dffa810da957ef8fc5dc8d266fbc05aaee (patch) | |
tree | d341377df14578f18bf1f04c2ceed3cfb6c454c1 /tool/aio.py | |
parent | 443755456befad9116d1d584cbabf5ef4542b6a7 (diff) | |
download | crupest-556047dffa810da957ef8fc5dc8d266fbc05aaee.tar.gz crupest-556047dffa810da957ef8fc5dc8d266fbc05aaee.tar.bz2 crupest-556047dffa810da957ef8fc5dc8d266fbc05aaee.zip |
Fix check_ubuntu.
Diffstat (limited to 'tool/aio.py')
-rwxr-xr-x | tool/aio.py | 4 |
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 |