Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

err: not found #7

Open
kseistrup opened this issue May 27, 2022 · 0 comments
Open

err: not found #7

kseistrup opened this issue May 27, 2022 · 0 comments

Comments

@kseistrup
Copy link

kseistrup commented May 27, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant