Show download link

This commit is contained in:
Jan Schneider 2018-01-23 23:26:04 +01:00
parent ee2965c91a
commit 48b1d37e7a
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ if {[info exists env(QUERY_STRING)]} {
regexp {cmd=([^&]+)} $env(QUERY_STRING) match cmd
}
if {$cmd == "download"} {
puts "<html><head><meta http-equiv=\"refresh\" content=\"0; url=${package_url}\" /></head></html>"
puts "<html><head><meta http-equiv=\"refresh\" content=\"0; url=${package_url}\" /></head><body><a href=\"${package_url}\">${package_url}</a></body></html>"
} else {
puts [exec /usr/bin/wget -q --no-check-certificate -O- "${version_url}"]
}