Skip to content
Snippets Groups Projects
Commit 33fff03f authored by Thomas Schneider's avatar Thomas Schneider
Browse files

dokuwiki: Sanitise update.sh

parent 7ae65c68
No related branches found
No related tags found
No related merge requests found
#!/bin/sh
cwd=$PWD
{% for dw in dokuwiki %}
cd {{ dw.path }}
curl -s https://update.dokuwiki.org/check/$(grep updateVersion doku.php | sed -E 's/\$updateVersion = "(.*)";/\1/g')
curl -s https://update.dokuwiki.org/check/"$(sed -n -E '/updateVersion/ { s/\$updateVersion = "(.*)";/\1/g; p; q }' "{{ dw.path }}"/doku.php)"
{% endfor %}
cd ${cwd}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment