Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
okalachev committed Feb 6, 2024
1 parent 36daadd commit 8866889
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions builder/image-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ get_image() {
# TEMPLATE: get_image <IMAGE_PATH> <RPI_DONWLOAD_URL>
local BUILD_DIR=$(dirname $1)
local RPI_ZIP_NAME=$(basename $2)
local RPI_IMAGE_NAME=$(echo ${RPI_ZIP_NAME} | sed 's/\.xz//')
local RPI_IMAGE_NAME=$(echo ${RPI_ZIP_NAME} | sed 's/zip/img/')

if [ ! -e "${BUILD_DIR}/${RPI_ZIP_NAME}" ]; then
echo_stamp "Downloading original Linux distribution"
Expand All @@ -72,7 +72,7 @@ get_image() {
echo_stamp "Unzipping Linux distribution image"
apt-get update --allow-releaseinfo-change
apt-get install -y xz-utils
unxz ${BUILD_DIR}/${RPI_ZIP_NAME}
unxz --stdout ${BUILD_DIR}/${RPI_ZIP_NAME} > $1
}

get_image ${IMAGE_PATH} ${SOURCE_IMAGE}
Expand Down

0 comments on commit 8866889

Please sign in to comment.