Skip to content

GOBREW_ROOT: unbound variable #207

Closed
@TimDurward

Description

Running into an issue during installation

curl -sLk https://raw.githubusercontent.com/kevincobain2000/gobrew/master/git.io.sh | sh
+ GOBREW_BIN_DIR=/Users/tdurward/.gobrew/bin
sh: line 8: GOBREW_ROOT: unbound variable

Looks like there was a recent change to the install script (git.io.sh) that added pipefail, with the flag -u, which treats unset variables as errors.

bbb18aa#diff-727c8d35769984ee976f3371533d1535e636f4a80a2b7b09826d98a2ef1f7071R3

I was able to fix this locally by modifying the following...

- if [ -n "$GOBREW_ROOT" ]; then
+ if [ -n "${GOBREW_ROOT:-}" ]; then
    GOBREW_BIN_DIR=$GOBREW_ROOT/.gobrew/bin
fi

I should also mention that I'm running on Bash version 5.2.32.

Activity

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

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