Update Pf2eTools-install.sh

This commit is contained in:
Johanna Rührig 2025-01-01 23:01:04 +01:00 committed by GitHub
parent 79900ccb09
commit ba536127b3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -27,7 +27,7 @@ msg_ok "Installed Dependencies"
msg_info "Setup Pf2eTools" 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) }') 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" wget -q "https://github.com/Pf2eToolsOrg/Pf2eTools/archive/refs/tags/${RELEASE}.zip"
unzip "${RELEASE}.zip" unzip -q "${RELEASE}.zip"
mv "Pf2eTools-${RELEASE:1}" /opt/Pf2eTools mv "Pf2eTools-${RELEASE:1}" /opt/Pf2eTools
echo "${RELEASE}" >/opt/Pf2eTools_version.txt echo "${RELEASE}" >/opt/Pf2eTools_version.txt
msg_ok "Set up Pf2eTools" msg_ok "Set up Pf2eTools"