inspec/ci/verify-inspec.bat
Miah Johnson 112f12da61 Updated omnibus postinst script to symlink to appbundle created binstubs (#2732)
* Updated `postinst` script to symlink to appbundle created binstubs
rather than rubygems binstubs in embedded directory.

The rubygems binstubs do not account for GEM_HOME or GEM_PATHS existing
in the invoking shell. This creates problems on systems with multiple
ruby versions. If GEM_HOME or GEM_PATH is set the rubygems embedded
binstubs will attempt to use this external gem source which will
generally result in errors for the user.

Signed-off-by: Miah Johnson <miah@chia-pet.org>
2018-02-28 13:47:08 -05:00

9 lines
280 B
Batchfile

@ECHO OFF
REM ; Set GEM_HOME and GEM_PATH to verify our appbundle inspec shim is correctly
REM ; removing them from the environment while launching from our embedded ruby.
SET GEM_HOME=C:\SHOULD_NOT_EXIST
SET GEM_PATH=C:\SHOULD_NOT_EXIST
cd C:\opscode\inspec\bin
inspec version