mirror of
https://github.com/wled/WLED.git
synced 2025-04-25 23:37:18 +00:00
tools: Add all_xml fetch script
Useful for checking that I haven't broken anything.
This commit is contained in:
parent
d4268ba070
commit
1346eb4f76
17
tools/all_xml.sh
Normal file
17
tools/all_xml.sh
Normal file
@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
# Pull all settings pages for comparison
|
||||
HOST=$1
|
||||
TGT_PATH=$2
|
||||
CURL_ARGS="--compressed"
|
||||
|
||||
# Replicate one target many times
|
||||
function replicate() {
|
||||
for i in {0..10}
|
||||
do
|
||||
echo -n " http://${HOST}/settings.js?p=$i -o ${TGT_PATH}/$i.xml"
|
||||
done
|
||||
}
|
||||
read -a TARGETS <<< $(replicate)
|
||||
|
||||
mkdir -p ${TGT_PATH}
|
||||
curl ${CURL_ARGS} ${TARGETS[@]}
|
Loading…
x
Reference in New Issue
Block a user