aboutsummaryrefslogtreecommitdiff
path: root/tools/shellcheck.sh
blob: 719c717cf2e1ebc5fc4998028db996b91301a0ec (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh -e

# SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project
# SPDX-License-Identifier: GPL-3.0-or-later

# fd is slightly faster on NVMe (the syntax sux though)
if command -v fd > /dev/null; then
	fd . tools -esh -x shellcheck
else
	find tools -name "*.sh" -exec shellcheck -s sh {} \;
fi