Skip to content

Commit

Permalink
Debootstrap log doen't exist if build completes
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Finimundi <[email protected]>
  • Loading branch information
danielmundi committed Feb 4, 2022
1 parent c58344b commit ca2155b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ if [ "${CONTAINER_EXISTS}" != "" ]; then
(mount binfmt_misc -t binfmt_misc /proc/sys/fs/binfmt_misc || true) &&
cd /pi-gen; (./build.sh ${BUILD_OPTS} || true);
rsync -av work/*/build.log deploy/;
rsync -av work/wlanpi/stage0/debootstrap.log deploy/" &
rsync -av work/wlanpi/stage0/debootstrap.log deploy/ || true" &
wait "$!"
else
trap 'echo "got CTRL+C... please wait 5s" && ${DOCKER} stop -t 5 ${CONTAINER_NAME}' SIGINT SIGTERM
Expand All @@ -119,7 +119,7 @@ else
(mount binfmt_misc -t binfmt_misc /proc/sys/fs/binfmt_misc || true) &&
cd /pi-gen; (./build.sh ${BUILD_OPTS} || true);
rsync -av work/*/build.log deploy/;
rsync -av work/wlanpi/stage0/debootstrap.log deploy/" &
rsync -av work/wlanpi/stage0/debootstrap.log deploy/ || true" &
wait "$!"
fi

Expand All @@ -136,4 +136,5 @@ if [ -f deploy/*.zip ]; then
echo "Done! Your image(s) should be in deploy/"
else
echo "Build failed. Logs are in deploy/"
exit 1
fi

0 comments on commit ca2155b

Please sign in to comment.