我工作的公司决定在 LAMP 设置中采用“Vagrant”。因为我是第一个接触团队之间代码库的人,所以我选择设置“Vagrantfile”。我的团队在 Mac Book Pro 的 OSX 上工作,Vagrant 一直是一个梦想,但是,当我们进一步推进开发工作流程时,那端的团队使用 Windows,他们遇到了很多困难。我已经回家了,我也使用 Windows 并且可以重新创建错误。
它从这里开始:
: command not foundnt/puphpet/shell/os-detect.sh: line 2:
请注意将“找不到命令”一词强加到包含 URL 错误的字符串中的奇怪之处。
我有一连串的问题:
: command not foundnt/puphpet/shell/os-detect.sh: line 9:
'=> default: grep: invalid option -- '
==> default: Usage: grep [OPTION]... PATTERN [FILE]...
==> default: Try grep --help' for more information. ==> default: /vagrant/puphpet/shell/os-detect.sh: line 15: syntax error near unexpected tokenelif'
'=> default: /vagrant/puphpet/shell/os-detect.sh: line 15: elif [ -f '/etc/redhat-release' ]; then : command not foundnt/puphpet/shell/os-detect.sh: line 2: : command not foundnt/puphpet/shell/os-detect.sh: line 9: '=> default: grep: invalid option -- ' ==> default: Usage: grep [OPTION]... PATTERN [FILE]... ==> default: Trygrep --help' for more information.
==> default: /vagrant/puphpet/shell/os-detect.sh: line 15: syntax error near unexpected token elif' '=> default: /vagrant/puphpet/shell/os-detect.sh: line 15:elif [ -f '/etc/redhat-release' ]; then
: command not foundnt/puphpet/shell/os-detect.sh: line 2:
: command not foundnt/puphpet/shell/os-detect.sh: line 9:
'=> default: grep: invalid option -- '
==> default: Usage: grep [OPTION]... PATTERN [FILE]...
==> default: Try grep --help' for more information. ==> default: /vagrant/puphpet/shell/os-detect.sh: line 15: syntax error near unexpected tokenelif'
'=> default: /vagrant/puphpet/shell/os-detect.sh: line 15: `elif [ -f '/etc/redhat-release' ]; then
我确定这是 OSX 和 Windows 之间的字符问题,但我无法检测到问题。