Skip to content

Commit

Permalink
brew-gomod.rb: strip @ suffix from package name
Browse files Browse the repository at this point in the history
This allows running commands like

    brew gomod filippo.io/mkcert@master
  • Loading branch information
FiloSottile committed Mar 22, 2020
1 parent 23ce95c commit b40adfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion brew-gomod
Expand Up @@ -20,7 +20,7 @@ if [[ $# -lt 1 ]]; then
exit 1
fi

NAME=$(basename "$1")
NAME=$(basename "$1" | cut -d@ -f1)
VERSION=$(date '+%Y-%m-%d')

brew list "gomod-$NAME" >/dev/null 2>&1 && \
Expand Down

0 comments on commit b40adfc

Please sign in to comment.