lint-version-change: correctly print multiline variables

This commit is contained in:
Đoàn Trần Công Danh 2022-09-16 09:55:49 +07:00 committed by Đoàn Trần Công Danh
parent 28c485ecfc
commit e6a34da6d1

View File

@ -43,7 +43,10 @@ show_template() {
show_template_var() { show_template_var() {
rev="$1" var="$2" rev="$1" var="$2"
show_template "$rev" | grep -Po '^'${var}'=\K.*' (
show_template "$rev"
printf '%s\n' "printf '%s\\n' \"\$${var}\""
) | bash
} }
revision_reset() { revision_reset() {