Skip to content
Snippets Groups Projects
Unverified Commit abdf9f68 authored by Tom Herbers's avatar Tom Herbers
Browse files

contrib/update-images.sh: download multiple branches and other dir

parent 61b7fdfa
No related branches found
No related tags found
No related merge requests found
#!/bin/bash #!/usr/bin/env bash
FACTORY="https://firmware.darmstadt.freifunk.net/images/stable/factory/" set -e
SYSUPGRADE="https://firmware.darmstadt.freifunk.net/images/stable/sysupgrade/"
mkdir images BASE_URL="https://firmware.darmstadt.freifunk.net/images/"
curl -o images/gluon-factory-example.html "$FACTORY" for BRANCH in "stable" "beta" "testing";
curl -o images/gluon-sysupgrade-example.html "$SYSUPGRADE" do
echo "updating ${BRANCH}"
mkdir -p images/${BRANCH}
curl -sSfo images/${BRANCH}/gluon-factory-example.html "${BASE_URL}${BRANCH}/factory/"
curl -sSfo images/${BRANCH}/gluon-other-example.html "${BASE_URL}${BRANCH}/other/"
curl -sSfo images/${BRANCH}/gluon-sysupgrade-example.html "${BASE_URL}${BRANCH}/sysupgrade/"
done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment