aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xinstall.zsh2
1 files changed, 1 insertions, 1 deletions
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