summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorGabriel Pérez-Cerezo <gabriel@gpcf.eu>2020-04-15 19:47:23 +0200
committerGabriel Pérez-Cerezo <gabriel@gpcf.eu>2020-04-15 19:47:23 +0200
commit1e3c22c1597493c288de6b7e13a2d412160c9cd3 (patch)
tree7fd918c5aa8962e9cd8cb3b02cce69e16be710ba /scripts
parent2678fe55057401854743a29b6c0a795d81a0f3a0 (diff)
downloadlifomapserver-1e3c22c1597493c288de6b7e13a2d412160c9cd3.tar.gz
lifomapserver-1e3c22c1597493c288de6b7e13a2d412160c9cd3.tar.bz2
lifomapserver-1e3c22c1597493c288de6b7e13a2d412160c9cd3.zip
Fix wiki links, make red links red
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/geojson/fetch_single.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/geojson/fetch_single.sh b/scripts/geojson/fetch_single.sh
index 0b3442e..ce37b59 100755
--- a/scripts/geojson/fetch_single.sh
+++ b/scripts/geojson/fetch_single.sh
@@ -11,7 +11,7 @@ coords=`echo "$json" | sed -n "s/.*coordinates = {{Co|\([^}]*\).*/\1/p"`
coord_x=`echo "$coords" | sed -n "s/\([^|]\+\).*/\1/p"`
coord_y=`echo "$coords" | sed -n "s/.*|\([^|]\+\).*/\1/p"`
-description=`curl "https://wiki.linux-forks.de/mediawiki/api.php?action=parse&page=$1&section=0&prop=text&format=json" 2>/dev/null | sed -z -n "s/<\/p><p>//g;s/.*<p>\(.*\)<\/p>.*/\1/p"`
+description=`curl "https://wiki.linux-forks.de/mediawiki/api.php?action=parse&page=$1&section=0&prop=text&format=json" 2>/dev/null | sed -z -n "s/<\/p><p>//g;s/.*<p>\(.*\)<\/p>.*/\1/p" | sed s,\"/mediawiki/index.php,\"https://wiki.linux-forks.de/mediawiki/index.php,g`
if [[ "$coord_x" != "" && "$coord_y" != "" ]]; then