aboutsummaryrefslogtreecommitdiffstats
path: root/install.zsh
diff options
context:
space:
mode:
authorLibravatarLarge Libravatar memdmp <memdmpestrogenzone>2025-01-08 18:26:56 +0100
committerLibravatarLarge Libravatar memdmp <memdmpestrogenzone>2025-01-08 18:26:56 +0100
commiteb79fdc42fbd7719c86ec24ba6720264e985a26e (patch)
tree4872ec1d68d8985b67af61aaad7620caa913528c /install.zsh
parent702e934bec9ba2105f278cdab97ae272cdac03b3 (diff)
downloadzuwu-eb79fdc42fbd7719c86ec24ba6720264e985a26e.tar.gz
zuwu-eb79fdc42fbd7719c86ec24ba6720264e985a26e.tar.bz2
zuwu-eb79fdc42fbd7719c86ec24ba6720264e985a26e.tar.lz
zuwu-eb79fdc42fbd7719c86ec24ba6720264e985a26e.zip

fix: make shellcheck a tiny bit happier and shellharden happy

Diffstat (limited to 'install.zsh')
-rwxr-xr-xinstall.zsh4
1 files changed, 2 insertions, 2 deletions
diff --git a/install.zsh b/install.zsh
index 97714ce..ba167d8 100755
--- a/install.zsh
+++ b/install.zsh
@@ -4,7 +4,7 @@ __filename="$(realpath "$0")"
__dirname="$(dirname "$__filename")"
if [[ "$TARGET" != "" ]]; then
- # no-op
+ true; # no-op
elif [[ "$SYSROOT_PREFIX" != "" ]]; then
TARGET="$SYSROOT_PREFIX/usr/share/zsh/plugins/zuwu"
elif [[ "$PREFIX" != "" ]]; then
@@ -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" && ! grep 'Repository seems to be empty' "$TARGET/$1") || curl -fsSLo "$TARGET/$1" "https://raw.githubusercontent.com/dmpmem/zuwu/refs/heads/master/$1"
else
cp -r "$__dirname/$1" "$TARGET/$1"
fi