浏览代码

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

Joan Marcè i Igual 2 年之前
父节点
当前提交
bf57b4ff3d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/functions.zsh

+ 1 - 1
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"