Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added update-check.cgi which takes care of performing update checks f…
…or the addon.
- Loading branch information
Showing
3 changed files
with
28 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/tclsh | ||
|
||
catch { | ||
set input $env(QUERY_STRING) | ||
set pairs [split $input &] | ||
foreach pair $pairs { | ||
if {0 != [regexp "^(\[^=]*)=(.*)$" $pair dummy varname val]} { | ||
set $varname $val | ||
} | ||
} | ||
} | ||
|
||
if { [info exists cmd ] && $cmd == "download"} { | ||
if { [info exists version ] } { | ||
puts "<meta http-equiv='refresh' content='0; url=https://github.com/jens-maus/scriptparser/releases/tag/$version' />" | ||
} else { | ||
puts "<meta http-equiv='refresh' content='0; url=https://github.com/jens-maus/scriptparser/releases' />" | ||
} | ||
} else { | ||
set version [ exec /usr/bin/wget -qO- --no-check-certificate https://raw.githubusercontent.com/jens-maus/scriptparser/master/VERSION ] | ||
puts $version | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters