diff options
Diffstat (limited to 'deploy/adapters/ansible/roles/cinder-volume/files/losetup.sh')
-rw-r--r-- | deploy/adapters/ansible/roles/cinder-volume/files/losetup.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/deploy/adapters/ansible/roles/cinder-volume/files/losetup.sh b/deploy/adapters/ansible/roles/cinder-volume/files/losetup.sh index d0e6c776..1f0b2b0e 100644 --- a/deploy/adapters/ansible/roles/cinder-volume/files/losetup.sh +++ b/deploy/adapters/ansible/roles/cinder-volume/files/losetup.sh @@ -1,5 +1,5 @@ loop_dev=`losetup -a |grep "/var/cinder.img"|awk -F':' '{print $1}'` -if [[ -z $loop_dev ]]; then +if [ -z $loop_dev ]; then losetup -f --show /var/cinder.img else echo $loop_dev |