DOMjudge / domjudge-packaging

DOMjudge packaging for (Linux) distributions and live image
31 stars 37 forks source link

Bugfix some errors in scripts #104

Closed Dup4 closed 2 years ago

Dup4 commented 2 years ago

https://github.com/DOMjudge/domjudge-packaging/blob/b7ebf8f02ec8e0014a595d9c8bfacf4e3db8982f/docker/domserver/configure.sh#L15-L22

image

https://github.com/koalaman/shellcheck/wiki/SC2066

image

Obviously, the code in the loop has not taken offect.

https://github.com/DOMjudge/domjudge-packaging/blob/b7ebf8f02ec8e0014a595d9c8bfacf4e3db8982f/docker/domserver/configure.sh#L64-L65

image

https://github.com/koalaman/shellcheck/wiki/SC2016

image

${php_version} replacement was not successful.

https://github.com/DOMjudge/domjudge-packaging/blob/b7ebf8f02ec8e0014a595d9c8bfacf4e3db8982f/docker/judgehost/build.sh#L9

image

https://github.com/koalaman/shellcheck/wiki/SC2024

Dup4 commented 2 years ago

BTW: I detected these errors by using shellcheck in vscode.

nickygerritsen commented 2 years ago

Our main repo has some GitHub actions now. I leave it to @vmcj to think where to place shellcheck

vmcj commented 2 years ago

@Dup4 I've added shellcheck, so let's see what it can find besides your fixes.

Dup4 commented 2 years ago

image

good job. @vmcj

Looks like some issues have been detected

nickygerritsen commented 2 years ago

I think we can close this issue now by the way?

Dup4 commented 2 years ago

I think we can close this issue now by the way?

Yes.