-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathscript-lint.sh
More file actions
executable file
·31 lines (25 loc) · 886 Bytes
/
Copy pathscript-lint.sh
File metadata and controls
executable file
·31 lines (25 loc) · 886 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/sh
require() { command -v "$1" > /dev/null || { echo "error: $1 command required yet absent" ; exit 1 ; } ; }
require shellcheck
set -ex
shellcheck start.sh
shellcheck dev_sockets.sh
# -x needed to make shellcheck follow `source` command
shellcheck script-lint.sh
shellcheck -x test.sh
shellcheck -x test-sub1.sh
shellcheck -x test-sub2.sh
shellcheck -x test-sub3.sh
shellcheck orbit/warpdrive.sh
shellcheck orbit/start.sh
shellcheck denis/configure.sh
shellcheck mailman/inspector.sh
shellcheck git/admin.sh
shellcheck git/create-repo.sh
shellcheck git/setup-repo.sh
shellcheck git/cgi-bin/git-receive-pack
shellcheck git/hooks/post-update
shellcheck daily_backup.sh
shellcheck -x backup/backup.sh
shellcheck -x backup/restore.sh
test "$(git ls-tree -r HEAD | grep -c '.*\.sh$')" -eq "17" || (echo "New script detected. Does it need to be added to script-lint?" && false)