Skip to content

Commit bcaf34f

Browse files
authored
Fix release parsing (#3484)
1 parent 87106a6 commit bcaf34f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ct/homepage.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ function update_script() {
4040
if [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]] || [[ ! -f /opt/${APP}_version.txt ]]; then
4141
msg_info "Updating Homepage to v${RELEASE} (Patience)"
4242
systemctl stop homepage
43-
wget -q https://github.com/gethomepage/homepage/archive/refs/tags/v${RELEASE}.tar.gz
43+
curl -fsSL "https://github.com/gethomepage/homepage/archive/refs/tags/v${RELEASE}.tar.gz" -o $(basename "https://github.com/gethomepage/homepage/archive/refs/tags/v${RELEASE}.tar.gz")
4444
tar -xzf v${RELEASE}.tar.gz
4545
rm -rf v${RELEASE}.tar.gz
4646
cp -r homepage-${RELEASE}/* /opt/homepage/

install/homepage-install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ msg_ok "Installed Node.js"
3232
LOCAL_IP=$(hostname -I | awk '{print $1}')
3333
RELEASE=$(curl -s https://api.github.com/repos/gethomepage/homepage/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
3434
msg_info "Installing Homepage v${RELEASE} (Patience)"
35-
wget -q https://github.com/gethomepage/homepage/archive/refs/tags/v${RELEASE}.tar.gz
35+
curl -fsSL "https://github.com/gethomepage/homepage/archive/refs/tags/v${RELEASE}.tar.gz" -o $(basename "https://github.com/gethomepage/homepage/archive/refs/tags/v${RELEASE}.tar.gz")
3636
$STD tar -xzf v${RELEASE}.tar.gz
3737
rm -rf v${RELEASE}.tar.gz
3838
mkdir -p /opt/homepage/config

0 commit comments

Comments
 (0)