Skip to content

err: not found #7

@kseistrup

Description

@kseistrup

The install.sh script refers twice to the command err:

$ grep -n err install.sh
114:        err "Need '$1' (command not found)"
127:        err "Need '$1' (command not found)"

However, said err command is not defined in the install script itself, neither is it a builtin in POSIX compliant shells.

It could be as simple as:

err() {
  echo "$@" >&2
  exit 1
}

Please note, though, that the variable '$1' will never be expanded since it is enclosed in single quotes in the original script.

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