From 990c3edc3269557c8edef6cef20cf2fc2f7bffb6 Mon Sep 17 00:00:00 2001 From: Brian Zalewski Date: Sun, 25 Dec 2022 08:39:47 +0000 Subject: [PATCH] Update file run_onchange_before_configure-swap.tmpl --- .../linux/run_onchange_before_configure-swap.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home/.chezmoiscripts/linux/run_onchange_before_configure-swap.tmpl b/home/.chezmoiscripts/linux/run_onchange_before_configure-swap.tmpl index b032c487..552b4fb4 100644 --- a/home/.chezmoiscripts/linux/run_onchange_before_configure-swap.tmpl +++ b/home/.chezmoiscripts/linux/run_onchange_before_configure-swap.tmpl @@ -4,7 +4,7 @@ {{ includeTemplate "universal/profile" }} {{ includeTemplate "universal/logg" }} -MEMORY_IN_KB="$(grep MemTotal /proc/meminfo | sed 's/.* \(\d+\) kB/\1/')" +MEMORY_IN_KB="$(grep MemTotal /proc/meminfo | sed 's/.* \(.*\) kB/\1/')" MEMORY_IN_GB="$((MEMORY_IN_KB / 1024 / 1024))" if [ "$MEMORY_IN_GB" -gt 64 ]; then