sed 语句和替换有关系么?把所有**opts 替换成 opts?
vagrant -v 本地显示为 1.7,1, 那么执行过程中,会 转换为awk "BEGIN {exit 0}"
这个是什么意思?
\
# temporary hack to address bug with vagrant-vbguest installation
# https://github.com/mitchellh/vagrant/issues/4962
if awk "BEGIN {exit vagrant -v
== "1.7.1" ? 0 : 1 }"
then
sudo sed -i .original 's/**opts/opts/g' /opt/vagrant/embedded/gems/gems/vagrant-1.7.1/lib/vagrant/machine.rb
fi