Check the ng version properly

pull/30/head
kirinokirino 8 months ago
parent db01332c15
commit 825e33e33d

@ -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

Loading…
Cancel
Save