aboutsummaryrefslogtreecommitdiffstats
path: root/install.zsh
diff options
context:
space:
mode:
authorLibravatarLarge Libravatar memdmp <memdmpmemewarenet>2025-01-15 10:36:38 +0100
committerLibravatarLarge Libravatar memdmp <memdmpmemewarenet>2025-01-15 10:36:38 +0100
commit50387c6d103a7e9031000843c81d6e378ff7cbc4 (patch)
tree3bca6f6ec234ce8c11f33cbe57e471fc4126cef0 /install.zsh
parentffe88360c306a300ef2849f11f88b20b93a6d949 (diff)
downloadzuwu-50387c6d103a7e9031000843c81d6e378ff7cbc4.tar.gz
zuwu-50387c6d103a7e9031000843c81d6e378ff7cbc4.tar.bz2
zuwu-50387c6d103a7e9031000843c81d6e378ff7cbc4.tar.lz
zuwu-50387c6d103a7e9031000843c81d6e378ff7cbc4.zip

feat: allow installin a specific ref

Diffstat (limited to 'install.zsh')
-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