From 860cc1408f4d9122718efebae61fce86763279ad Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Fri, 13 Mar 2020 02:45:05 -0600 Subject: [PATCH] clean-up output spacing for readability --- template-update.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/template-update.sh b/template-update.sh index 45d345a..c3c50ab 100755 --- a/template-update.sh +++ b/template-update.sh @@ -51,7 +51,7 @@ printf "Checking for updates to this script... " repoScriptChecksum=$( grep "$repoScriptName" "$checksumFilename" | grep -o '^\S*' ) localScriptChecksum=$( sha256sum "$localScriptName" | grep -o '^\S*' ) if [ "$localScriptChecksum" = "$repoScriptChecksum" ]; then - printf "[NONE]\n\n" + printf "[NONE]\n" else # download updated script if ! wget --quiet --tries=3 --timeout=10 -O $localScriptName "${server}${repoScriptName}"; then @@ -78,7 +78,7 @@ set -- dummy $updateFiles shift for file; do updateTarget="$file" - printf "Checking '%s' for updates... " "$updateTarget" + printf "\nChecking '%s' for updates... " "$updateTarget" repoFile=$( grep "$updateTarget" "$checksumFilename" | grep -o '^\S*' ) if [ -f "$file" ]; then localFile=$( sha256sum "$updateTarget" | grep -o '^\S*' )