Ensure a newline is printed even when Swap size cannot be determined

This commit is contained in:
Nils Steinger 2017-02-25 18:10:27 +01:00
parent 17b1681c5e
commit 573d5277d2
1 changed files with 2 additions and 1 deletions

View File

@ -24,7 +24,8 @@ then
printf 'Swap: -\n'
else
printf 'Swap: '
free -h | awk 'NR==4 {print $2}'
free -h | awk 'NR==4 {printf $2}'
printf '\n'
fi
printf 'Kernel: '
uname -s -r -m