mirror of
https://github.com/inspec/inspec
synced 2024-11-26 22:50:36 +00:00
112f12da61
* 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>
9 lines
280 B
Batchfile
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
|