Skip to content

Commit

Permalink
Revert "refactor: Simplify get_yaml"
Browse files Browse the repository at this point in the history
This reverts commit a9a3546.
  • Loading branch information
erikmd committed Apr 29, 2020
1 parent cd28bd2 commit f54013c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ ask1() { local yn; echo -n "$* [Y/n] "; read -r -n 1 yn; [[ "$yn" =~ [Yy] ]] &&
get_yaml() {
# Arg 1: the meta.yml path
# STDIN: the mustache code
mustache "$1" <(cat)
local meta="$1" temp
temp=$(mktemp --tmpdir --suffix .yml template-XXX)
cat > "$temp"
mustache "$meta" "$temp"
rm -f "$temp"
}

for f in "$srcdir"/{,.}*.mustache; do
Expand Down

0 comments on commit f54013c

Please sign in to comment.