Skip to content

Lauch Script depends on 'which', non-graceful termination when it's missing #425

@KevinAtSesam

Description

@KevinAtSesam

Through trial and error, I discovered that one of the images we use in our services does not come pre-packed with which. While this is a minor inconvenience to change, it took me the better part of a day to realise, that the launch script fails because of that.

Since which is essential for the launch script to function, I wish to ask you to include an error message when which is not available.

Could be as simple as

if ! command -v which &> /dev/null
then
    echo "'which' could not be found"
    exit
fi

Launch script

https://github.com/xerial/sbt-pack/blob/master/src/main/twirl/xerial/sbt/pack/launch.scala.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions