X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fagenda%2Finfo_overload_report.sh;h=e6b63b2fcdc4f28475ab0f7585583bd8b44cbdda;hb=37c6cdc5370b3151ca609d54361596fddc44e3ae;hp=46a5dc2553f2a5f824680fe812c1ff2d95f63351;hpb=a311833fce168b970195f8e34415619c26bc0226;p=feisty_meow.git diff --git a/scripts/agenda/info_overload_report.sh b/scripts/agenda/info_overload_report.sh index 46a5dc25..e6b63b2f 100644 --- a/scripts/agenda/info_overload_report.sh +++ b/scripts/agenda/info_overload_report.sh @@ -1,3 +1,4 @@ +#!/bin/bash # these metrics are how bogged down we are in to-do type items. @@ -22,7 +23,7 @@ function calculate_count() function calculate_weight() { local dir="$1"; shift - local weight=$(find "$dir" -type f -exec echo \"{}\" ';' 2>/dev/null | grep -v "\.svn" | grep -v "\.git"| grep -v "\.basket" | grep -v "\.version" | grep -v "\.keep" | xargs ls -al | awk '{ print $5 }' | paste -sd+ | bc 2>/dev/null) + local weight=$(find "$dir" -type f -exec echo \"{}\" ';' 2>/dev/null | grep -v "\.svn" | grep -v "\.git"| grep -v "\.basket" | grep -v "\.version" | grep -v "\.keep" | xargs ls -al | awk '{ print $5 }' | paste -sd+ - | bc 2>/dev/null) if [ -z "$weight" ]; then echo 0; else echo "$weight"; fi } @@ -31,7 +32,7 @@ function calculate_weight() function calculate_complexity() { local dir="$1"; shift - local complexity=$(find "$dir" -type d | wc -l) + local complexity=$(find "$dir" -type d | wc -l | tr -d ' ') if [ -z "$complexity" ]; then echo 0; else echo "$complexity"; fi }