repo.or.cz
/
Samba.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
s4:kdc: Make use of smb_krb5_principal_is_tgs()
[Samba.git]
/
script
/
check-shell-scripts.sh
blob
f4f48a3bec34f0e3f3d84dad4922ec6ddb084022
1
#!/bin/sh
2
3
if
[
$#
-lt
1
];
then
4
echo
"Usage: $(basename "
${0}
") DIR [SEVERITY]"
5
exit
1
6
fi
7
8
DIR
=
"
${1}
"
9
SEVERITY
=
"
${2:-error}
"
10
11
shfmt
-f
"
${DIR}
"
|
12
grep
-v -E
"(bootstrap|third_party)"
|
13
xargs
shellcheck \
14
--shell
=
sh \
15
--external-sources
\
16
--check-sourced
\
17
--format
=
gcc \
18
--severity
=
"
${SEVERITY}
"
19
20
exit
$?