bf57b4ff3d53726a1317459b0f48853e90d7a6e4
- Author
- Joan Marcè i Igual <jmigual@users.noreply.github.com>
- Committer
- GitHub <noreply@github.com>
- Date
Message
feat(functions/take): make `.tgz` behave as `.tar.gz` (#11446)
Diff
1diff --git a/lib/functions.zsh b/lib/functions.zsh
2index dfcc4d961084805965d81a49d1efa218f756c5b5..6e1faa6aa165a09549797ad7b23bd174480ce9b2 100644
3--- a/lib/functions.zsh
4+++ b/lib/functions.zsh
5@@ -56,7 +56,7 @@ function takegit() {
6 }
7
8 function take() {
9- if [[ $1 =~ ^(https?|ftp).*\.tar\.(gz|bz2|xz)$ ]]; then
10+ if [[ $1 =~ ^(https?|ftp).*\.(tar\.(gz|bz2|xz)|tgz)$ ]]; then
11 takeurl "$1"
12 elif [[ $1 =~ ^([A-Za-z0-9]\+@|https?|git|ssh|ftps?|rsync).*\.git/?$ ]]; then
13 takegit "$1"