clean-up output spacing for readability

This commit is contained in:
Asif Bacchus 2020-03-13 02:45:05 -06:00
parent 50a1f35c37
commit 860cc1408f

View File

@ -51,7 +51,7 @@ printf "Checking for updates to this script... "
repoScriptChecksum=$( grep "$repoScriptName" "$checksumFilename" | grep -o '^\S*' ) repoScriptChecksum=$( grep "$repoScriptName" "$checksumFilename" | grep -o '^\S*' )
localScriptChecksum=$( sha256sum "$localScriptName" | grep -o '^\S*' ) localScriptChecksum=$( sha256sum "$localScriptName" | grep -o '^\S*' )
if [ "$localScriptChecksum" = "$repoScriptChecksum" ]; then if [ "$localScriptChecksum" = "$repoScriptChecksum" ]; then
printf "[NONE]\n\n" printf "[NONE]\n"
else else
# download updated script # download updated script
if ! wget --quiet --tries=3 --timeout=10 -O $localScriptName "${server}${repoScriptName}"; then if ! wget --quiet --tries=3 --timeout=10 -O $localScriptName "${server}${repoScriptName}"; then
@ -78,7 +78,7 @@ set -- dummy $updateFiles
shift shift
for file; do for file; do
updateTarget="$file" updateTarget="$file"
printf "Checking '%s' for updates... " "$updateTarget" printf "\nChecking '%s' for updates... " "$updateTarget"
repoFile=$( grep "$updateTarget" "$checksumFilename" | grep -o '^\S*' ) repoFile=$( grep "$updateTarget" "$checksumFilename" | grep -o '^\S*' )
if [ -f "$file" ]; then if [ -f "$file" ]; then
localFile=$( sha256sum "$updateTarget" | grep -o '^\S*' ) localFile=$( sha256sum "$updateTarget" | grep -o '^\S*' )