浏览代码

Vagrantfile: cygwin: Prepend cygwin PATH.

Otherwise crippled programs of the pre-installed MLS-OpenSSHd's path
hide the cygwin programs.
Hartmut Goebel 8 年之前
父节点
当前提交
f962659f11
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Vagrantfile

+ 2 - 2
Vagrantfile

@@ -205,11 +205,11 @@ def packages_cygwin(version)
 
 
     echo "alias mkdir='mkdir -p'" > ~/.profile
     echo "alias mkdir='mkdir -p'" > ~/.profile
     echo "export CYGWIN_ROOT=/cygdrive/c/cygwin/CygWin" >> ~/.profile
     echo "export CYGWIN_ROOT=/cygdrive/c/cygwin/CygWin" >> ~/.profile
-    echo 'export PATH=$PATH:$CYGWIN_ROOT/bin' >> ~/.profile
+    echo 'export PATH=$CYGWIN_ROOT/bin:$PATH' >> ~/.profile
 
 
     echo '' > ~/.bash_profile
     echo '' > ~/.bash_profile
 
 
-    cmd.exe /c 'setx /m PATH "%PATH%;C:\\cygwin\\CygWin\\bin"'
+    cmd.exe /c 'setx /m PATH "C:\\cygwin\\CygWin\\bin;%PATH%"'
     source ~/.profile
     source ~/.profile
     cd /cygdrive/c/cygwin && cmd.exe /c install.bat
     cd /cygdrive/c/cygwin && cmd.exe /c install.bat