kusnier / vagrant-persistent-storage

A Vagrant plugin that creates a persistent storage and attaches it to guest machine.
MIT License
292 stars 68 forks source link

bash 3.1 compatible, fix #63 #64

Closed HenryNe closed 7 years ago

HenryNe commented 7 years ago

Fix the error #63 in bash 3.1:

/tmp/disk_operations_data.sh: line 3: unexpected argument (' to conditional binary operator /tmp/disk_operations_data.sh: line 3: syntax error near([' /tmp/disk_operations_data.sh: line 3: `[[ $("sfdisk" --version) =~ ([0-9][.][0-9.][0-9.]) ]] && version="${BASH_REMATCH[1]}"'

Store regular expression into variable, before us it.

kusnier commented 7 years ago

Thanks