Skip to content

Commit

Permalink
Fix shellexpansion
Browse files Browse the repository at this point in the history
  • Loading branch information
vmcj committed Jun 18, 2024
1 parent 7a2a93c commit aaf579a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/jobs/ci_settings.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down

0 comments on commit aaf579a

Please sign in to comment.