remove extraneous linebreaks

This commit is contained in:
Asif Bacchus 2020-09-15 23:11:52 -06:00
parent ca82b501cb
commit d3eab06714

View File

@ -119,7 +119,7 @@ fi
set -- dummy $updateFiles
shift
for file; do
printf "\nchecking '%s' for updates... " "$file"
printf "checking '%s' for updates... " "$file"
repoFileChecksum=$( grep "$file" "$checksumFilename" | grep -o '^\S*' )
if [ -f "$file" ]; then
localFileChecksum=$( sha256sum "$file" | grep -o '^\S*' )
@ -127,15 +127,14 @@ for file; do
localFileChecksum=0
fi
if ! [ "$localFileChecksum" = "$repoFileChecksum" ]; then
printf "%s[AVAILABLE]%s\n" "$yellow" "$norm"
printf "%s[AVAILABLE]%s " "$yellow" "$norm"
updatesAvailable=$((updatesAvailable+1))
# download update
printf "Downloading updated '%s'... " "$file"
if ! wget --quiet --tries=3 --timeout=10 -O "$file" "$serverPath$file"; then
printf "%s[ERROR]%s\n\n" "$err" "$norm"
printf "%s[ERROR]%s\n" "$err" "$norm"
downloadFailed=$((downloadFailed+1))
else
printf "%s[OK] %s" "$ok" "$norm"
printf "%s[DOWNLOADED] %s" "$ok" "$norm"
downloadSuccess=$((downloadSuccess+1))
# verify download
localFileChecksum=$( sha256sum "$file" | grep -o '^\S*' )