From 1de6f8684940b68c68821ce57073289f11e84099 Mon Sep 17 00:00:00 2001 From: Steve Malers Date: Sun, 26 Mar 2023 23:58:27 -0600 Subject: [PATCH] Update the git-check.sh script to fix empty folder but, issue #256 Found this prepping for the 14.7.0 release. --- build-util/git-util/git-check.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/build-util/git-util/git-check.sh b/build-util/git-util/git-check.sh index eb6f699..a8516de 100755 --- a/build-util/git-util/git-check.sh +++ b/build-util/git-util/git-check.sh @@ -4,7 +4,7 @@ #-----------------------------------------------------------------NoticeStart- # Git Utilities -# Copyright 2017-2022 Open Water Foundation. +# Copyright 2017-2023 Open Water Foundation. # # License GPLv3+: GNU GPL version 3 or later # @@ -158,10 +158,10 @@ checkWorkingFiles() { if [ ${matchCount} -ge 1 ]; then # Empty folder found that is not git ignored. ${echo2} " ${line2}" > ${emptyFoldersTmpFile} + # Track repositories with empty folders, often indicate an issue. + emptyFoldersRepoCount=$(expr ${emptyFoldersRepoCount} + 1) fi - done - # Track repositories with empty folders, often indicate an issue. - emptyFoldersRepoCount=$(expr ${emptyFoldersRepoCount} + 1) + done # If any empty untracked folders were detected, print the following. if [ -s "${emptyFoldersTmpFile}" ]; then matchCountTotal=$(cat ${emptyFoldersTmpFile} | wc -l) @@ -406,7 +406,7 @@ printVersion() { scriptFolder=$(cd $(dirname "$0") && pwd) scriptName=$(basename $0) -version="1.9.1 2022-11-15" +version="1.9.3 2023-03-26" # Set initial values. debug="false"