aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2023-05-22 12:36:33 +0200
committerPatrick Spek <p.spek@tyil.nl>2023-05-22 12:36:33 +0200
commiteb905296d16d0132eef0e36c8fdda097f7b9e099 (patch)
tree8ad16d00f370d7bf677ea61098ee2d755f83eb16
parent245996141ed338760f147416051ceb5cfde1ec74 (diff)
Add double-quotes around vars to please shellcheck
-rw-r--r--lib/subcommands/sysinfo.bash8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/subcommands/sysinfo.bash b/lib/subcommands/sysinfo.bash
index 1b34993..726fd01 100644
--- a/lib/subcommands/sysinfo.bash
+++ b/lib/subcommands/sysinfo.bash
@@ -68,11 +68,11 @@ subcommand() {
# Print fun little extras
printf "%-15s %0.1fGi / %0.1fGi\n" "memory" \
- "$(awk '{ print($1 / 1024 / 1024) }' <<< $memory_used)" \
- "$(awk '{ print($1 / 1024 / 1024) }' <<< $memory_total)"
+ "$(awk '{ print($1 / 1024 / 1024) }' <<< "$memory_used")" \
+ "$(awk '{ print($1 / 1024 / 1024) }' <<< "$memory_total")"
printf "%-15s %0.1fGb / %0.1fGb\n" "storage" \
- "$(awk '{ print($1 / 1024 / 1024) }' <<< $storage_used)" \
- "$(awk '{ print($1 / 1024 / 1024) }' <<< $storage_total)"
+ "$(awk '{ print($1 / 1024 / 1024) }' <<< "$storage_used")" \
+ "$(awk '{ print($1 / 1024 / 1024) }' <<< "$storage_total")"
printf "%-15s %0.2f %0.2f %0.2f\n" "load" \
"$load_1" \
"$load_5" \