diff --git a/.github/jobs/ci_settings.sh b/.github/jobs/ci_settings.sh index a5f73040a4..350b07cf09 100644 --- a/.github/jobs/ci_settings.sh +++ b/.github/jobs/ci_settings.sh @@ -26,12 +26,12 @@ section_end_internal () { mysql_root () { # shellcheck disable=SC2086 - echo "$1" | mysql -uroot -proot ${2} | tee -a "$ARTIFACTS"/mysql.txt + echo "$1" | mysql -uroot -proot ${2:-} | tee -a "$ARTIFACTS"/mysql.txt } mysql_user () { # shellcheck disable=SC2086 - echo "$1" | mysql -udomjudge -pdomjudge ${2} | tee -a "$ARTIFACTS"/mysql.txt + echo "$1" | mysql -udomjudge -pdomjudge ${2:-} | tee -a "$ARTIFACTS"/mysql.txt } section_start () {