|
|
|
@ -21,9 +21,7 @@ srcdir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
|
|
|
|
|
|
|
|
section "Checking for whitespace only lines"
|
|
|
|
|
|
|
|
|
|
date
|
|
|
|
|
start_time="$(date +%s)"
|
|
|
|
|
echo
|
|
|
|
|
start_time="$(start_timer)" |
|
|
|
|
|
|
|
|
|
|
. "$srcdir/excluded.sh"
|
|
|
|
|
|
|
|
|
@ -38,13 +36,6 @@ if [ $found == 1 ]; then
|
|
|
|
|
exit 1
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
echo
|
|
|
|
|
date
|
|
|
|
|
echo
|
|
|
|
|
end_time="$(date +%s)"
|
|
|
|
|
# if start and end time are the same let returns exit code 1
|
|
|
|
|
let time_taken=$end_time-$start_time || :
|
|
|
|
|
echo "Completed in $time_taken secs"
|
|
|
|
|
echo
|
|
|
|
|
time_taken "$start_time"
|
|
|
|
|
section2 "Whitespace only checks passed"
|
|
|
|
|
echo
|
|
|
|
|