Skip to content

Commit 09ef2af

Browse files
authored
Merge pull request #70185 from aireilly/tweak-preview-script
Disable manual preview if travis is not in use
2 parents 2aa90a2 + 1bdb31e commit 09ef2af

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

scripts/manualpreview.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
set -e
44

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

0 commit comments

Comments
 (0)