From 825e33e33df3b99d731cedb6a447a5eaf7115b93 Mon Sep 17 00:00:00 2001 From: kirinokirino Date: Mon, 8 Apr 2024 14:55:29 +0200 Subject: [PATCH] Check the ng version properly --- scripts/lib.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/lib.py b/scripts/lib.py index 8721381..b593fc8 100644 --- a/scripts/lib.py +++ b/scripts/lib.py @@ -46,7 +46,10 @@ def check_exec(name: str) -> bool: if shut.which(name) is None: print('{} not found'.format(name)) return False - exec('{} --version'.format(name)) + if name is "ng": + exec('ng version') + else: + exec('{} --version'.format(name)) return True