Skip to content

Commit

Permalink
scripts/mkimage-yaml.sh: add options for title and description
Browse files Browse the repository at this point in the history
  • Loading branch information
ncopa committed May 30, 2017
1 parent 2b4535b commit 3bc5908
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/mkimage-yaml.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 3bc5908

Please sign in to comment.