Update volumes.sh

added extra code to avoid script to be stopped
This commit is contained in:
Edward Viaene
2018-01-18 11:39:46 +01:00
committed by GitHub
parent b333c9f3f0
commit 48e660798f
+1 -1
View File
@@ -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}'`