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