Skip to content

Commit

Permalink
only try opening the site if we're not in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
jazzsequence committed Sep 22, 2023
1 parent f4b300b commit 9514b38
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions private/scripts/helpers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -460,13 +460,15 @@ function clean_up() {
# Switch back to SFTP so files can be written.
terminus connection:set "$sitename"."$siteenv" sftp

# Open the site. This should generate requisite files on page load.
echo "${yellow}Opening the dev-${sitename}.pantheonsite.io to generate requisite files.${normal}"
open https://dev-"$sitename".pantheonsite.io
if [ "$is_ci" -ne 1 ]; then
# Open the site. This should generate requisite files on page load.
echo "${yellow}Opening the dev-${sitename}.pantheonsite.io to generate requisite files.${normal}"
open https://dev-"$sitename".pantheonsite.io

# Commit any additions found in SFTP mode.
echo "${yellow}Committing any files found in SFTP mode that were created by Sage.${normal}"
terminus env:commit "$sitename"."$siteenv" --message="[Sage Install] Add any leftover files found in SFTP mode."
# Commit any additions found in SFTP mode.
echo "${yellow}Committing any files found in SFTP mode that were created by Sage.${normal}"
terminus env:commit "$sitename"."$siteenv" --message="[Sage Install] Add any leftover files found in SFTP mode."
fi

# Switch back to Git.
terminus connection:set "$sitename"."$siteenv" git
Expand Down

0 comments on commit 9514b38

Please sign in to comment.