12 lines · 323 B · Text
RawDownload
#!/usr/bin/env bash set -euo pipefail mode=${1:-error}[[ "$mode" =~ ^(error|warning)$ ]] || { echo "Usage: $0 [error|warning]"; exit 1; } cd "$(dirname "$0")/.." || exit 1 find script -maxdepth 1 -type f -print0 |  xargs -0 grep -l -E '^#!(/bin/|/usr/bin/env )(sh|bash|dash)' |  xargs -r shellcheck -x -S "$mode" -C

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t