Update Pf2eTools-install.sh

This commit is contained in:
Johanna Rührig 2025-01-01 22:07:11 +01:00 committed by GitHub
parent 10a1ed6b1e
commit 1072109f6e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -27,7 +27,8 @@ msg_ok "Installed Dependencies"
msg_info "Setup Pf2eTools"
RELEASE=$(curl -s https://api.github.com/repos/Pf2eToolsOrg/Pf2eTools/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
wget -q "https://github.com/Pf2eToolsOrg/Pf2eTools/archive/refs/tags/${RELEASE}.zip"
unzip -j "${RELEASE}.zip" -d /opt/Pf2eTools
unzip "${RELEASE}.zip"
mv "Pf2eTools-${RELEASE}" /opt/Pf2eTools
echo "${RELEASE}" >/opt/Pf2eTools_version.txt
msg_ok "Set up Pf2eTools"