From: Chris Koeritz Date: Thu, 20 Feb 2020 18:58:12 +0000 (-0500) Subject: fixed paste usage to be mac os compatible X-Git-Tag: 2.140.117^2~13 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=3dfc0d0235dec63239223aac39ce3ef5f692fbae;p=feisty_meow.git fixed paste usage to be mac os compatible --- diff --git a/scripts/agenda/info_overload_report.sh b/scripts/agenda/info_overload_report.sh index 46a5dc25..b4ad7388 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 }