Skip to content

Commit

Permalink
fix vgs free space check (#2510)
Browse files Browse the repository at this point in the history
Signed-off-by: Simon L <[email protected]>
Co-authored-by: Daniel Hansson <[email protected]>
  • Loading branch information
szaimen and enoch85 authored Jun 23, 2023
1 parent cd48cd8 commit ab47c78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ab47c78

Please sign in to comment.