1
0
mirror of https://github.com/lineageos4microg/docker-lineage-cicd synced 2024-11-09 10:09:56 +01:00

Call before.sh (and correct doc comment)

This commit is contained in:
Pete Fotheringham 2024-09-02 15:03:00 +01:00
parent f5df79adc2
commit bc6051d962

@ -31,12 +31,12 @@
# - main sync and build loop
# For each device in `$DEVICE_LIST`
# - setup subdirectories
# - `repo init`
# - `repo sync`
# - setup our overlays
# - Add custom packages to be installed
# - Handle keys
# - Prepare the environment
# - `repo init`
# - `repo sync`
# - Call `before.sh`
# - `breakfast` - in case of failure, call
# - `post-build.sh`
@ -298,6 +298,14 @@ for codename in ${devices//,/ }; do
echo ">> [$(date)] Preparing build environment disabled"
fi
# Call `before.sh`
if [ -f /root/userscripts/before.sh ]; then
echo ">> [$(date)] Running before.sh"
echo "before.sh is now called *after* repo sync."
echo "In previous versions, iot was called *before* repo sync"
/root/userscripts/before.sh || { echo ">> [$(date)] Error: before.sh failed for $branch!"; userscriptfail=true; continue; }
fi
fi