()
| 18 | ] |
| 19 | |
| 20 | def 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 | |
| 27 | def get_files(command): |
| 28 | output = subprocess.run(command, stdout=subprocess.PIPE, text=True) |