Unverified Commit bf57b4ff authored by Joan Marcè i Igual's avatar Joan Marcè i Igual Committed by GitHub

feat(functions/take): make `.tgz` behave as `.tar.gz` (#11446)

parent f1a80006
......@@ -56,7 +56,7 @@ function takegit() {
}
function take() {
if [[ $1 =~ ^(https?|ftp).*\.tar\.(gz|bz2|xz)$ ]]; then
if [[ $1 =~ ^(https?|ftp).*\.(tar\.(gz|bz2|xz)|tgz)$ ]]; then
takeurl "$1"
elif [[ $1 =~ ^([A-Za-z0-9]\+@|https?|git|ssh|ftps?|rsync).*\.git/?$ ]]; then
takegit "$1"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment