mirror of
https://github.com/jorgebucaran/fisher
synced 2024-11-09 07:10:27 +00:00
Merge pull request #175 from BretJohnson/master
For some reason a \ line continuation followed by a | at the beginning
This commit is contained in:
commit
48c51c980d
@ -38,8 +38,7 @@ function __fisher_plugin_validate -a plugin
|
|||||||
return 1
|
return 1
|
||||||
end
|
end
|
||||||
|
|
||||||
printf "%s\n" "$plugin" \
|
printf "%s\n" "$plugin" | sed -E "
|
||||||
| sed -E "
|
|
||||||
s|^gh[:/]+|https://github.com/|
|
s|^gh[:/]+|https://github.com/|
|
||||||
s|^gl[:/]+|https://gitlab.com/|
|
s|^gl[:/]+|https://gitlab.com/|
|
||||||
s|^bb[:/]+|https://bitbucket.org/|
|
s|^bb[:/]+|https://bitbucket.org/|
|
||||||
@ -48,7 +47,6 @@ function __fisher_plugin_validate -a plugin
|
|||||||
s|^(gist\.github\.com.*)|https://\1|
|
s|^(gist\.github\.com.*)|https://\1|
|
||||||
s|^http(s?)[:/]*|http\1://|
|
s|^http(s?)[:/]*|http\1://|
|
||||||
s|https://github((.com)?/)?|https://github.com/|
|
s|https://github((.com)?/)?|https://github.com/|
|
||||||
s|/*(\.git/*)*\$||g" \
|
s|/*(\.git/*)*\$||g" | tr "[A-Z]" "[a-z]"
|
||||||
| tr "[A-Z]" "[a-z]"
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user