From 3256396f5e066f595ecbde9b75d0e8c3bc2a138e Mon Sep 17 00:00:00 2001 From: davidnewhall2 Date: Thu, 2 Jan 2020 15:29:41 -0800 Subject: [PATCH] check this --- dashboards.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dashboards.sh b/dashboards.sh index 7b69a87..84a6042 100755 --- a/dashboards.sh +++ b/dashboards.sh @@ -35,7 +35,7 @@ function check { pushd "${WHERE}" for file in *; do - found=0 + local found=0 [ "$file" != "README.md" ] || continue isChanged "$file" @@ -72,7 +72,7 @@ function check2 { popd >> /dev/null for i in ${!DASHMAP[@]}; do - found=0 + local found=0 for file in $files; do if [ "${DASHMAP[$i]}" = "$file" ]; then @@ -92,6 +92,7 @@ function check2 { function isChanged { local changed=false local filename=$1 + local file="" for file in $CHANGES; do if [ "$file" = "$filename" ]; then