diff options
author | Joan Marcè i Igual <jmigual@users.noreply.github.com> | 2023-01-20 19:45:14 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-20 19:45:14 +0100 |
commit | bf57b4ff3d53726a1317459b0f48853e90d7a6e4 (patch) | |
tree | 21e17b676e8f0d85587f19db8b257f2edc367d1c /lib | |
parent | f1a800067f46fa990a11ea0055459560ce63a7ae (diff) | |
download | zsh-bf57b4ff3d53726a1317459b0f48853e90d7a6e4.tar.gz zsh-bf57b4ff3d53726a1317459b0f48853e90d7a6e4.tar.bz2 zsh-bf57b4ff3d53726a1317459b0f48853e90d7a6e4.zip |
feat(functions/take): make `.tgz` behave as `.tar.gz` (#11446)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/functions.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/functions.zsh b/lib/functions.zsh index dfcc4d961..6e1faa6aa 100644 --- a/lib/functions.zsh +++ b/lib/functions.zsh @@ -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" |