Code cleanup
This commit is contained in:
parent
2e4494a202
commit
4c37d686f8
@ -59,7 +59,7 @@ _shlint()
|
|||||||
for subdir in $subdirs; do
|
for subdir in $subdirs; do
|
||||||
[ -d "../$subdir" ] || continue
|
[ -d "../$subdir" ] || continue
|
||||||
for filename in $($FIND "../$subdir" -name '*.sh' | $SORT); do
|
for filename in $($FIND "../$subdir" -name '*.sh' | $SORT); do
|
||||||
$DEBUG $SHLINT "$filename" 2>&1
|
_shlint_file "$filename"
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
echo "$filename:"
|
echo "$filename:"
|
||||||
else
|
else
|
||||||
@ -71,6 +71,11 @@ _shlint()
|
|||||||
return $ret
|
return $ret
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_shlint_file()
|
||||||
|
{
|
||||||
|
$DEBUG $SHLINT "$filename" 2>&1
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
#debug
|
#debug
|
||||||
_debug()
|
_debug()
|
||||||
|
Loading…
Reference in New Issue
Block a user