diff --git a/scripts/gate-check-commit.sh b/scripts/gate-check-commit.sh index fd87484b03..e29ee0afe8 100755 --- a/scripts/gate-check-commit.sh +++ b/scripts/gate-check-commit.sh @@ -154,8 +154,10 @@ if [[ "${ACTION}" == "upgrade" ]]; then # to bypass that for an automated test. export I_REALLY_KNOW_WHAT_I_AM_DOING=true - # Execute the upgrade script. - bash "$(dirname "${0}")/run-upgrade.sh" + # To execute the upgrade script we need to provide + # an affirmative response to the warning that the + # upgrade is irreversable. + echo 'YES' | bash "$(dirname "${0}")/run-upgrade.sh" fi