From 407bdb2ddf5016e0ae8e311b30693ab491be938e Mon Sep 17 00:00:00 2001 From: Hyperling Date: Mon, 10 Nov 2025 15:09:37 -0700 Subject: [PATCH] Add single quotes around awk parameters. --- files/dwm/storage.function | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/files/dwm/storage.function b/files/dwm/storage.function index f202843..fc1eddd 100755 --- a/files/dwm/storage.function +++ b/files/dwm/storage.function @@ -10,11 +10,11 @@ function storage { fi if [[ "$style" == "%" || "$style" == "pct" || "$style" == "percent" ]]; then - df -h "$location" | tail -n 1 | awk {print $5} + df -h "$location" | tail -n 1 | awk '{print $5}' elif [[ "$style" == "/" || "$style" == "use" || "$style" == "usage" ]]; then - df -h "$location" | tail -n 1 | awk {print $3"/"$2} + df -h "$location" | tail -n 1 | awk '{print $3"/"$2}' else - df -h "$location" | tail -n 1 | awk {print $5" Free, "$3"/"$2" Used"} + df -h "$location" | tail -n 1 | awk '{print $5" Free, "$3"/"$2" Used"}' fi }