Convert file name to lower case

uuidgen produced upper case uuids on some platforms (macOS). Changed
timing of filename lowercasing to catch this.

Signed-off-by: Ron Stone <ronald.stone@windriver.com>
Change-Id: I4ffe8d3c0e2f272433b59d5c942bc8bdf4fc806c
This commit is contained in:
Ron Stone 2021-10-01 06:43:05 -04:00
parent 8c7ee27b28
commit 9684d8f766

View File

@ -101,8 +101,8 @@ ask_type
filename="${title//[^[:alnum:]]/-}"
filename=$(echo $filename | tr -s -)
filename=${filename,,}
filename="${filename}-${myuuid}"
filename=${filename,,}
[ $input == "i" ] && filename="index-${filename}"
CONTEXT_DIR="${BASH_SOURCE%/*}"