From a656868dff57b41eead44659481d84c9a2368cb8 Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Thu, 20 Feb 2020 13:58:12 -0500 Subject: [PATCH] fixed paste usage to be mac os compatible --- scripts/agenda/info_overload_report.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 } -- 2.34.1