Merge pull request #17733 from Homebrew/brew-repository-more-error-checking
cmd/--repository: improve tap name error checking
This commit is contained in:
commit
770dec760e
@ -13,6 +13,11 @@ tap_path() {
|
||||
local repo
|
||||
local part
|
||||
|
||||
if [[ "${tap}" != *"/"* ]]
|
||||
then
|
||||
odie "Invalid tap name: ${tap}"
|
||||
fi
|
||||
|
||||
user="$(echo "${tap%%/*}" | tr '[:upper:]' '[:lower:]')"
|
||||
repo="$(echo "${tap#*/}" | tr '[:upper:]' '[:lower:]')"
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user