Skip to content

Commit

Permalink
Removed undefined variable ERR.
Browse files Browse the repository at this point in the history
  • Loading branch information
marcopaganini committed Feb 11, 2023
1 parent 132d76d commit 34f1260
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dist/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ set -eu
readonly PREFIX="/usr/local"

die() {
echo >&2 "${ERR} ${*}"
echo >&2 "${*}"
exit 1
}

main() {
uid="$(id -u)"
if [ "${uid}" -ne 0 ]; then
die "Please run this program as root (using sudo)"
die "Please run this program as root (using sudo)."
fi

bindir="${PREFIX}/bin"
Expand Down

0 comments on commit 34f1260

Please sign in to comment.