From 9514b38acf2cd6b167873aef5c82bcbc4373fa7b Mon Sep 17 00:00:00 2001 From: Chris Reynolds Date: Fri, 22 Sep 2023 16:58:15 -0600 Subject: [PATCH] only try opening the site if we're not in ci --- private/scripts/helpers.sh | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/private/scripts/helpers.sh b/private/scripts/helpers.sh index c1e3881b..d4012995 100755 --- a/private/scripts/helpers.sh +++ b/private/scripts/helpers.sh @@ -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