1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00

disable manual preview if travis is not in use

This commit is contained in:
aireilly
2024-01-12 17:12:38 +00:00
committed by openshift-cherrypick-robot
parent d3a2a150bd
commit 299fff9aee

View File

@@ -2,6 +2,14 @@
set -e
git_root=$(git rev-parse --show-toplevel)
# Exit if Travis is not being used
if [ -f "${git_root}/.travis.yml.old" ]; then
echo "Travis CI is not in use. Exiting..."
exit 0
fi
# Check if jq is installed
hash jq 2>/dev/null || { echo >&2 "Error: jq is not installed. Please install jq before running this script."; exit 1; }