Skip to content

Commit

Permalink
fix(zinit-install): simplify protocol pattern (#645)
Browse files Browse the repository at this point in the history

Signed-off-by: Vladislav Doster <[email protected]>
  • Loading branch information
vladdoster authored Mar 20, 2024
1 parent 7094330 commit e8c3205
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions zinit-install.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ builtin source "${ZINIT[BIN_DIR]}/zinit-side.zsh" || {
) || return $?
} elif [[ $tpe = github ]] {
case ${ICE[proto]} in
(|https|git|http|ftp|ftps|rsync|ssh)
(|ftp(|s)|git|http(|s)|rsync|ssh)
:zinit-git-clone() {
command git clone --progress ${(s: :)ICE[cloneopts]---recursive} \
${(s: :)ICE[depth]:+--depth ${ICE[depth]}} \
Expand Down Expand Up @@ -886,8 +886,7 @@ builtin source "${ZINIT[BIN_DIR]}/zinit-side.zsh" || {
ZINIT[annex-multi-flag:pull-active]=${${${(M)update:#-u}:+${ZINIT[annex-multi-flag:pull-active]}}:-2}

(
if [[ $url = (http|https|ftp|ftps|scp)://* ]] {
# URL
if [[ $url = (ftp(|s)|http(|s)|scp)://* ]] {
(
() { setopt localoptions noautopushd; builtin cd -q "$local_dir"; } || return 4

Expand Down

0 comments on commit e8c3205

Please sign in to comment.