Skip to content

Commit

Permalink
check.sh script: take into account both exit codes 0 and 255 from 'go…
Browse files Browse the repository at this point in the history
…dot --version'
  • Loading branch information
Bromeon committed Jul 17, 2022
1 parent 48d8fd7 commit 8896727
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions check.sh
Expand Up @@ -46,9 +46,9 @@ function findGodot() {
# Special case for Windows when there is a .bat file
# Also consider that 'cmd /c' would need 'cmd //c' (https://stackoverflow.com/q/21357813)
elif
# Don't ask me why Godot returns 255 instead of 0
# Godot returns 255 for older versions, but 0 for newer ones
godot.bat --version
[ $? -eq 255 ]
[[ $? -eq 255 || $? -eq 0 ]]
then
echo "Found 'godot.bat' script"
godotBin="godot.bat"
Expand Down

0 comments on commit 8896727

Please sign in to comment.