From 48e660798f3a5e6c438fe8a194e29fb824ee1042 Mon Sep 17 00:00:00 2001 From: Edward Viaene Date: Thu, 18 Jan 2018 11:39:46 +0100 Subject: [PATCH] Update volumes.sh added extra code to avoid script to be stopped --- demo-10/scripts/volumes.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demo-10/scripts/volumes.sh b/demo-10/scripts/volumes.sh index 232b22b..9c959bb 100644 --- a/demo-10/scripts/volumes.sh +++ b/demo-10/scripts/volumes.sh @@ -4,7 +4,7 @@ set -ex vgchange -ay -DEVICE_FS=`blkid -o value -s TYPE ${DEVICE}` +DEVICE_FS=`blkid -o value -s TYPE ${DEVICE} || echo ""` if [ "`echo -n $DEVICE_FS`" == "" ] ; then # wait for the device to be attached DEVICENAME=`echo "${DEVICE}" | awk -F '/' '{print $3}'`