Commit 3bc59080 authored by Natanael Copa's avatar Natanael Copa

scripts/mkimage-yaml.sh: add options for title and description

parent 2b4535bd
......@@ -16,6 +16,8 @@ while [ $# -gt 0 ]; do
--branch) branch="$1"; shift;;
--release) release="$1"; shift;;
--flavor) flavor="$1"; shift;;
--title) title="$1"; shift;;
--desc) desc="$1"; shift;;
--) break ;;
-*) usage; exit 1;;
esac
......@@ -50,9 +52,13 @@ for image; do
time=${time%.*}
file=${filepath##*/}
flavor=${file%-${release}-${arch}.*}
desc=$(echo "$desc" | sed -E 's/^\s*/ /')
cat <<-EOF
-
title: "$title"
desc: |
$desc
branch: $branch
arch: $arch
version: $release
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment