remove extraneous linebreaks
This commit is contained in:
parent
ca82b501cb
commit
d3eab06714
@ -119,7 +119,7 @@ fi
|
|||||||
set -- dummy $updateFiles
|
set -- dummy $updateFiles
|
||||||
shift
|
shift
|
||||||
for file; do
|
for file; do
|
||||||
printf "\nchecking '%s' for updates... " "$file"
|
printf "checking '%s' for updates... " "$file"
|
||||||
repoFileChecksum=$( grep "$file" "$checksumFilename" | grep -o '^\S*' )
|
repoFileChecksum=$( grep "$file" "$checksumFilename" | grep -o '^\S*' )
|
||||||
if [ -f "$file" ]; then
|
if [ -f "$file" ]; then
|
||||||
localFileChecksum=$( sha256sum "$file" | grep -o '^\S*' )
|
localFileChecksum=$( sha256sum "$file" | grep -o '^\S*' )
|
||||||
@ -127,15 +127,14 @@ for file; do
|
|||||||
localFileChecksum=0
|
localFileChecksum=0
|
||||||
fi
|
fi
|
||||||
if ! [ "$localFileChecksum" = "$repoFileChecksum" ]; then
|
if ! [ "$localFileChecksum" = "$repoFileChecksum" ]; then
|
||||||
printf "%s[AVAILABLE]%s\n" "$yellow" "$norm"
|
printf "%s[AVAILABLE]%s " "$yellow" "$norm"
|
||||||
updatesAvailable=$((updatesAvailable+1))
|
updatesAvailable=$((updatesAvailable+1))
|
||||||
# download update
|
# download update
|
||||||
printf "Downloading updated '%s'... " "$file"
|
|
||||||
if ! wget --quiet --tries=3 --timeout=10 -O "$file" "$serverPath$file"; then
|
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))
|
downloadFailed=$((downloadFailed+1))
|
||||||
else
|
else
|
||||||
printf "%s[OK] %s" "$ok" "$norm"
|
printf "%s[DOWNLOADED] %s" "$ok" "$norm"
|
||||||
downloadSuccess=$((downloadSuccess+1))
|
downloadSuccess=$((downloadSuccess+1))
|
||||||
# verify download
|
# verify download
|
||||||
localFileChecksum=$( sha256sum "$file" | grep -o '^\S*' )
|
localFileChecksum=$( sha256sum "$file" | grep -o '^\S*' )
|
||||||
|
Loading…
Reference in New Issue
Block a user