From 50387c6d103a7e9031000843c81d6e378ff7cbc4 Mon Sep 17 00:00:00 2001 From: memdmp Date: Wed, 15 Jan 2025 10:36:38 +0100 Subject: feat: allow installin a specific ref --- install.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.zsh b/install.zsh index ba167d8..c4ba603 100755 --- a/install.zsh +++ b/install.zsh @@ -19,7 +19,7 @@ mkdir -p "$TARGET" installFile() { mkdir -p "$(dirname "$TARGET/$1")" if [[ "$(basename "$__filename")" == "zsh" ]]; then - (curl -fsSLo "$TARGET/$1" "https://git.estrogen.zone/zuwu.git/plain/$1" && ! grep 'Repository seems to be empty' "$TARGET/$1") || curl -fsSLo "$TARGET/$1" "https://raw.githubusercontent.com/dmpmem/zuwu/refs/heads/master/$1" + (curl -fsSLo "$TARGET/$1" "https://git.estrogen.zone/zuwu.git/plain/$1?h=${REF:-master}" && ! grep 'Repository seems to be empty' "$TARGET/$1") || curl -fsSLo "$TARGET/$1" "https://raw.githubusercontent.com/dmpmem/zuwu/${REF:-"master"}/$1" else cp -r "$__dirname/$1" "$TARGET/$1" fi -- cgit v1.2.3