diff options
Diffstat (limited to 'manualPorts/logwatch/lastVersion.sh')
-rwxr-xr-x | manualPorts/logwatch/lastVersion.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/manualPorts/logwatch/lastVersion.sh b/manualPorts/logwatch/lastVersion.sh new file mode 100755 index 0000000..437d4a7 --- /dev/null +++ b/manualPorts/logwatch/lastVersion.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +curl "https://sourceforge.net/projects/logwatch/files/" 2> /dev/null | \ + grep "^\s*<tr title=\"logwatch-[^\"]*\" [^>]*>$" | \ + sed "s/^\s*<tr title=\"logwatch-\([^\"]*\)\" [^>]*>$/\1/" | \ + sort -n | \ + tail -n1 |