@@ -0,0 +1,15 @@
|
||||
{ writeShellApplication, shellcheck }:
|
||||
writeShellApplication {
|
||||
name = "shellcheck";
|
||||
runtimeInputs = [
|
||||
shellcheck
|
||||
];
|
||||
text = ''
|
||||
scripts=()
|
||||
shopt -s globstar
|
||||
for f in **/*.sh; do
|
||||
scripts+=("$f")
|
||||
done
|
||||
shellcheck -e SC2239 "''${scripts[@]}"
|
||||
'';
|
||||
}
|
||||
Reference in New Issue
Block a user