Skip to content

Build: freecol script is not executable and uses wrong line-endings #108

@sumpfralle

Description

@sumpfralle

I downloaded the latest nightly build (freecol-nightly-20220420.zip).

It contained the script freecol in the directory freecol.

This script had two issues:

  • The file lacked the executable permission. This could be fixed with chmod +x freecol/freecol.
  • The file contained CRLF line endings (dos/windows style).
    • Thus it was not executable: bash: freecol/freecol: /bin/sh^M: bad interpreter: No such file or directory
    • the ^M marks the carriage return (\r) which is not supposed to be there and which is interpreted as being part of the filename
    • this could be fixed with: fromdos freecol/freecol

The original script in the repository looks good: packaging/common/freecol.sh (executable flag and correct line ending).

Thus I guess, that build.xml needs some adjustments.

Thank you for your time!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions