summaryrefslogtreecommitdiff
path: root/omnibus/omnibus-test.sh
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2019-07-18 17:32:07 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2019-07-18 17:34:49 -0700
commit8a7240d03f6c5450baf995ed497ec28eb57e090e (patch)
tree9afee664b895f25b7bea4767a7d0ff78ef428d98 /omnibus/omnibus-test.sh
parenta9c2e4f2f6974b2b9e1c168305b942433d67707f (diff)
downloadchef-8a7240d03f6c5450baf995ed497ec28eb57e090e.tar.gz
only check for the embedded/bin file being there
we've never wired up the symlinks, they should be owned by the inspec package instead. we require these to exist though and this catches if inspec-core-bin slips out of the installed gemfile. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'omnibus/omnibus-test.sh')
-rw-r--r--omnibus/omnibus-test.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/omnibus/omnibus-test.sh b/omnibus/omnibus-test.sh
index 1f5d33c211..068dac1a13 100644
--- a/omnibus/omnibus-test.sh
+++ b/omnibus/omnibus-test.sh
@@ -93,8 +93,8 @@ if [[ ! -L $USR_BIN_DIR/ohai ]] || [[ $(ls -l $USR_BIN_DIR/ohai | awk '{print$NF
exit 1
fi
-if [[ ! -L $USR_BIN_DIR/inspec ]] || [[ $(ls -l $USR_BIN_DIR/inspec | awk '{print$NF}') != "$BIN_DIR/inspec" ]]; then
- echo "$USR_BIN_DIR/inspec symlink to $BIN_DIR/inspec was not correctly created by the pre-install script!"
+if [[ ! -x $EMBEDDED_BIN_DIR/inspec ]]; then
+ echo "$EMBEDDED_BIN_DIR/inspec does not exist!"
exit 1
fi