From daa8ac7f3c3ca4322bfdafcd5af076ef8216e017 Mon Sep 17 00:00:00 2001 From: Simon L Date: Fri, 23 Jun 2023 01:10:07 +0200 Subject: [PATCH] fix vgs free space check Signed-off-by: Simon L --- lib.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib.sh b/lib.sh index 1b210be589..7fd9529ade 100644 --- a/lib.sh +++ b/lib.sh @@ -1971,7 +1971,7 @@ fi check_free_space() { if vgs &>/dev/null then - FREE_SPACE=$(vgs | grep ubuntu-vg | awk '{print $7}' | grep g | grep -oP "[0-9]+[\.,][0-9]" | sed 's|\.||') + FREE_SPACE=$(vgs | grep ubuntu-vg | awk '{print $7}' | grep g | grep -oP "[0-9]+[\.,][0-9]" | sed 's|[.,]||') fi if [ -z "$FREE_SPACE" ] then