Skip to content

Commit c53dbeb

Browse files
committed
Windows save the PATH in batch file
1 parent cb3e519 commit c53dbeb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

modules/vagrant_installer/templates/windows_vagrant.bat.erb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ REM Save some variables we're going to change so we can restore them later
66
SET "VAGRANT_GEM_HOME_SAVED=%GEM_HOME%"
77
SET "VAGRANT_GEM_PATH_SAVED=%GEM_PATH%"
88
SET "VAGRANT_GEMRC_SAVED=%GEMRC%"
9+
SET "VAGRANT_PATH_SAVED=%PATH%"
910
SET "VAGRANT_RUBYOPT_SAVED=%RUBYOPT%"
1011

1112
REM Set environmental variables
@@ -34,6 +35,7 @@ REM Restore some environmental variables we changed
3435
SET "GEM_HOME=%VAGRANT_GEM_HOME_SAVED%"
3536
SET "GET_PATH=%VAGRANT_GEM_PATH_SAVED%"
3637
SET "GEMRC=%VAGRANT_GEMRC_SAVED%"
38+
SET "PATH=%VAGRANT_PATH_SAVED%"
3739
SET "RUBYOPT=%VAGRANT_RUBYOPT_SAVED"
3840

3941
REM Exit with the proper exit status from Vagrant

0 commit comments

Comments
 (0)