Reorder the code for getting release version in ps5-mqtt script

This commit is contained in:
liecno 2025-01-04 12:44:11 +01:00
parent d990541f78
commit 9a961b9bac

View File

@ -24,9 +24,8 @@ $STD apt-get install -y \
$STD npm i -g playactor $STD npm i -g playactor
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
RELEASE=$(curl -s https://api.github.com/repos/FunkeyFlo/ps5-mqtt/releases/latest | jq -r '.tag_name')
msg_info "Installing PS5-MQTT" msg_info "Installing PS5-MQTT"
RELEASE=$(curl -s https://api.github.com/repos/FunkeyFlo/ps5-mqtt/releases/latest | jq -r '.tag_name')
wget -P /tmp -q https://github.com/FunkeyFlo/ps5-mqtt/archive/refs/tags/${RELEASE}.tar.gz wget -P /tmp -q https://github.com/FunkeyFlo/ps5-mqtt/archive/refs/tags/${RELEASE}.tar.gz
tar zxf /tmp/${RELEASE}.tar.gz -C /opt tar zxf /tmp/${RELEASE}.tar.gz -C /opt
mv /opt/ps5-mqtt-* /opt/ps5-mqtt mv /opt/ps5-mqtt-* /opt/ps5-mqtt