diff --git a/omnibus/omnibus-test.ps1 b/omnibus/omnibus-test.ps1 index e20afb9a0..9667922d5 100644 --- a/omnibus/omnibus-test.ps1 +++ b/omnibus/omnibus-test.ps1 @@ -29,8 +29,7 @@ Start-Process "$package_file" /quiet -Wait Write-Output "--- Testing $channel $product $version" -$INSTALL_DIR = "C:\opscode\inspec" -$Env:PATH = "${INSTALL_DIR};${Env:PATH}" +$Env:PATH = "C:\opscode\inspec\bin;${Env:PATH}" Write-Output "Running verification for $product" @@ -39,5 +38,4 @@ Write-Output "Running verification for $product" $Env:GEM_HOME = "C:\SHOULD_NOT_EXIST" $Env:GEM_PATH = "C:\SHOULD_NOT_EXIST" -Set-Location -Path C:\opscode\inspec\bin inspec version diff --git a/omnibus/omnibus-test.sh b/omnibus/omnibus-test.sh index ea2179b29..d541a7a01 100644 --- a/omnibus/omnibus-test.sh +++ b/omnibus/omnibus-test.sh @@ -14,7 +14,7 @@ check-omnibus-package-signed "$package_file" echo "--- Testing $channel $product $version" export INSTALL_DIR=/opt/inspec -export PATH=/opt/inspec/bin:$PATH +export PATH="/opt/inspec/bin:$PATH" echo "Verifying ownership of package files"