fix: replace heredoc with printf to avoid YAML indent break
This commit is contained in:
@@ -51,11 +51,7 @@ runs:
|
||||
if [ ! -f "$MOD_FOLDER/README.md" ]; then
|
||||
TITLE=$(sed -n 's/.*"title": *"\([^"]*\)".*/\1/p' "$MOD_FOLDER/info.json")
|
||||
DESC=$(sed -n 's/.*"description": *"\([^"]*\)".*/\1/p' "$MOD_FOLDER/info.json")
|
||||
cat > "$MOD_FOLDER/README.md" <<- EOF
|
||||
# $TITLE
|
||||
|
||||
$DESC
|
||||
EOF
|
||||
printf '# %s\n\n%s\n' "$TITLE" "$DESC" > "$MOD_FOLDER/README.md"
|
||||
echo "Created $MOD_FOLDER/README.md"
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user