Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion src/custompios
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,14 @@ pushd $BASE_WORKSPACE
echo "Error: could not find image: $BASE_ZIP_IMG"
exit 1
fi
7za x -aoa "$BASE_ZIP_IMG"

if [[ $BASE_ZIP_IMG =~ \.img$ ]]; then
# if the image is already extracted copy over
cp "$BASE_ZIP_IMG" .
else
7za x -aoa "$BASE_ZIP_IMG"
fi

BASE_IMG_PATH=`ls | grep '.img$\|.raw$' | head -n 1`
if [ ! -f "$BASE_IMG_PATH" ]; then
echo "Error, can't find image path, did you place an image in the image folder?"
Expand Down