Pass the release as an argument.

master
Simon Quigley 6 years ago
parent 8b771d0ebd
commit ca870aa525

@ -25,6 +25,8 @@
set -u set -u
export RELEASE=$1
# Download files in parallel in background, only if there is an update # Download files in parallel in background, only if there is an update
refresh() { refresh() {
DIR=$BRITNEY_CACHE/$pocket/$(echo $1 | rev | cut --delimiter=/ --fields=2,3 | rev) DIR=$BRITNEY_CACHE/$pocket/$(echo $1 | rev | cut --delimiter=/ --fields=2,3 | rev)

@ -1,13 +1,10 @@
#!/bin/bash #!/bin/bash
for RELEASE in $RELEASES; do for RELEASE in $RELEASES; do
# This ensures the variable can be read inside all of the scripts
export RELEASE=$RELEASE;
echo "Release: $RELEASE"; echo "Release: $RELEASE";
# This is the main script, fetching the archives and running Britney # This is the main script, fetching the archives and running Britney
./fetch-indexes; ./fetch-indexes $RELEASE;
# Britney outputs the candidates for testing migration, read the additions # Britney outputs the candidates for testing migration, read the additions
egrep -v '^(#|-)' britney_output/*/HeidiOutputDelta > candidates || echo "No candidates found."; egrep -v '^(#|-)' britney_output/*/HeidiOutputDelta > candidates || echo "No candidates found.";

Loading…
Cancel
Save