aboutsummaryrefslogtreecommitdiff
path: root/tools/shellcheck.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/shellcheck.sh')
-rwxr-xr-xtools/shellcheck.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/shellcheck.sh b/tools/shellcheck.sh
new file mode 100755
index 0000000000..719c717cf2
--- /dev/null
+++ b/tools/shellcheck.sh
@@ -0,0 +1,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 \ No newline at end of file