Skip to content

Commit

Permalink
Allow running build from any directory
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Dahan committed Sep 20, 2024
1 parent f8a6bc5 commit ef8e77f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions utilities/build/build-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ if ! command -v docker 2>/dev/null; then
exit 1
fi

current_directory=$PWD
cd "$(dirname -- "$0")"

echo "updating pi-gen"; {
test -d pi-gen || git clone https://github.com/RPi-Distro/pi-gen
if [[ "$(uname -m)" == "arm64" ]]
Expand Down Expand Up @@ -30,6 +33,7 @@ echo "updating config"; {
}

echo "building"; {
cd pi-gen
./build-docker.sh
bash pi-gen/build-docker.sh
cp pi-gen/deploy/*.xz ${starting_directory}/
ls ${starting_directory}/*xz
}

0 comments on commit ef8e77f

Please sign in to comment.