mirror of
https://github.com/farcasclaudiu/terraform-course.git
synced 2026-06-22 07:01:56 +03:00
Update volumes.sh
added extra code to avoid script to be stopped
This commit is contained in:
@@ -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}'`
|
||||
|
||||
Reference in New Issue
Block a user