Browse Source

Vagrantfile: cygwin: Prepend cygwin PATH.

Otherwise crippled programs of the pre-installed MLS-OpenSSHd's path
hide the cygwin programs.
Hartmut Goebel 8 years ago
parent
commit
f962659f11
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Vagrantfile

+ 2 - 2
Vagrantfile

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