Skip to content

entry.sh is not portable to systems without readlink -f #299

Description

@gemshrine

The bug

entry.sh resolves its own directory with readlink -f "$0". BSD/macOS readlink does not implement -f, so the command exits under set -e before judges update starts. The repository documentation only requires Ruby/Bundler and does not declare GNU coreutils as a prerequisite.

Reproduction

On macOS (or another BSD userland), run ./entry.sh job /tmp/job with judges installed. The shell reports readlink: illegal option -- f and exits.

Expected

The entry point should resolve its directory portably (or document and enforce the GNU coreutils dependency) so the documented command works on supported Unix systems.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions