Skip to content

Commit 0ae089f

Browse files
committed
refactor: update.sh cleanup
1 parent 35409a2 commit 0ae089f

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

update.sh

+4-8
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,14 @@ perl -pi -e "s@FZFGIT_SHA1=.*@FZFGIT_SHA1=${VERSION}; \\\\@g" web-build/Dockerfi
2222
# bat
2323
VERSION=$(curl -Ls -o /dev/null -w %{url_effective} "https://github.com/sharkdp/bat/releases/latest" | sed 's/.*tag\/v//g')
2424
[ -n "$VERSION" ]
25-
if [ -n "$VERSION" ]; then
26-
echo "bat version: $VERSION"
27-
perl -pi -e "s@BAT_VERSION=.*@BAT_VERSION=${VERSION}; \\\\@g" web-build/Dockerfile.pimp-my-shell
28-
fi
25+
echo "bat version: $VERSION"
26+
perl -pi -e "s@BAT_VERSION=.*@BAT_VERSION=${VERSION}; \\\\@g" web-build/Dockerfile.pimp-my-shell
2927

3028
# z.lua
3129
VERSION=$(curl -Ls -o /dev/null -w %{url_effective} "https://github.com/skywind3000/z.lua/releases/latest" | sed 's/.*tag\///g')
3230
[ -n "$VERSION" ]
33-
if [ -n "$VERSION" ]; then
34-
echo "z.lua version: $VERSION"
35-
perl -pi -e "s@ZLUA_VERSION=.*@ZLUA_VERSION=${VERSION}; \\\\@g" web-build/Dockerfile.pimp-my-shell
36-
fi
31+
echo "z.lua version: $VERSION"
32+
perl -pi -e "s@ZLUA_VERSION=.*@ZLUA_VERSION=${VERSION}; \\\\@g" web-build/Dockerfile.pimp-my-shell
3733

3834
# starship (bash)
3935
VERSION=$(curl -Ls -o /dev/null -w %{url_effective} "https://github.com/starship/starship/releases/latest" | sed 's/.*tag\/v//g')

0 commit comments

Comments
 (0)