fixed "numfmt: invalid unit size"
This commit is contained in:
parent
668ac8e0ea
commit
37da57bfcc
|
@ -65,7 +65,7 @@ fi
|
||||||
MEM=$(grep /proc/meminfo \
|
MEM=$(grep /proc/meminfo \
|
||||||
-e 'MemTotal' -e 'MemAvailable' -e 'MemFree' \
|
-e 'MemTotal' -e 'MemAvailable' -e 'MemFree' \
|
||||||
-e 'SwapTotal' -e 'SwapFree' \
|
-e 'SwapTotal' -e 'SwapFree' \
|
||||||
| numfmt --field 2 --from-unit=Ki --to=iec | sed 's/ kB//g')
|
| numfmt --field 2 --to=iec | sed 's/M/G/g' | sed 's/ kB//g')
|
||||||
if [ -n "${MEM}" ]; then
|
if [ -n "${MEM}" ]; then
|
||||||
TXT_MSG=$(cat <<-END
|
TXT_MSG=$(cat <<-END
|
||||||
${TXT_MSG}
|
${TXT_MSG}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user