summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@chef.io>2019-07-18 17:35:20 -0700
committerGitHub <noreply@github.com>2019-07-18 17:35:20 -0700
commit0db825777b67c0d19fd5527ceabda333f89fc05c (patch)
tree9afee664b895f25b7bea4767a7d0ff78ef428d98
parenta9c2e4f2f6974b2b9e1c168305b942433d67707f (diff)
parent8a7240d03f6c5450baf995ed497ec28eb57e090e (diff)
downloadchef-0db825777b67c0d19fd5527ceabda333f89fc05c.tar.gz
only check for the embedded/bin/inspec file being there (#8755)
only check for the embedded/bin/inspec file being there
-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