Skip to content

Commit

Permalink
Merge pull request #364 from danykaufman/jupyter_github_unreachable_fix
Browse files Browse the repository at this point in the history
jupyter/igz-tutorials-get.sh: exit if github.com is unreachable
  • Loading branch information
danykaufman authored Mar 16, 2022
2 parents 662b52a + 5f748ad commit 6e32f41
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions igz-tutorials-get.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ if [ ! -z "${dry_run}" ]; then
echo "Dry run; no files will be copied."
fi

if ! (curl -s --connect-timeout 2 github.com &>/dev/null); then
error_exit "Github is unreachable, Aborting..."
fi

if [ -z "${branch}" ]; then
platform_version="${IGZ_VERSION%%_*}"
Expand Down

0 comments on commit 6e32f41

Please sign in to comment.