From e6bee52a061b965f36d2d4feafeed015b4b146c6 Mon Sep 17 00:00:00 2001 From: Suikan <26223147+suikan4github@users.noreply.github.com> Date: Tue, 29 Jun 2021 09:45:36 +0900 Subject: [PATCH] Supress error output of vgdisplay --- ubuntu/1-pre-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ubuntu/1-pre-install.sh b/ubuntu/1-pre-install.sh index 67ac9c8..36d12af 100644 --- a/ubuntu/1-pre-install.sh +++ b/ubuntu/1-pre-install.sh @@ -114,7 +114,7 @@ fi # if crypt volume is unable to open # ----- Configure the LVM in LUKS volume ----- # Check volume group ${VGNAME} exist or not -vgdisplay -s ${VGNAME} > /dev/null +vgdisplay -s ${VGNAME} &> /dev/null if [ $? -eq 0 ] ; then # is return value 0? ( exist ?) echo "...Volume group ${VGNAME} already exist. Skipped to create" else