MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / check_shellcheck_install

Function check_shellcheck_install

test/lint/lint-shell.py:20–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18]
19
20def check_shellcheck_install():
21 try:
22 subprocess.run(['shellcheck', '--version'], stdout=subprocess.DEVNULL, check=True)
23 except FileNotFoundError:
24 print('Skipping shell linting since shellcheck is not installed.')
25 sys.exit(0)
26
27def get_files(command):
28 output = subprocess.run(command, stdout=subprocess.PIPE, text=True)

Callers 1

mainFunction · 0.85

Calls 1

runMethod · 0.45

Tested by

no test coverage detected