title: What does this error mean? (SC2129: Consider using { cmd1; cmd2; } >> file instead of individual redirects.)
body: <p>I'm writing a script to generate draft posts for my blog. After running <a href="http://www.shellcheck.net" rel="noreferrer">ShellCheck</a>, I keep seeing this error pop up. What does this mean and can someone provide an example?</p>
  
  <blockquote>
    <p><code>SC2129: Consider using { cmd1; cmd2; } &gt;&gt; file instead of individual redirects.</code></p>
  </blockquote>
  
  <p>In addition, I'm not sure what I need to do in order to pass the value of <code>$title</code> to the <code>"Title"</code> field in the post's YAML...</p>
  
  <pre><code>#!/bin/bash
  
  # Set some variables
  
  var site_path=~/Documents/Blog
  drafts_path=~/Documents/Blog/_drafts
  title="$title"
  
  # Create the filename
  
  title=$("$title" | "awk {print tolower($0)}")
  filename="$title.markdown"
  file_path="$drafts_path/$filename"
  echo "File path: $file_path"
  
  # Create the file, Add metadata fields
  
  echo "---" &gt; "$file_path"
  {
      echo "title: \"$title\""
  }   &gt;&gt; "$file_path"
  
  echo "layout: post" &gt;&gt; "$file_path"
  echo "tags: " &gt;&gt; "$file_path"
  echo "---" &gt;&gt; "$file_path"
  
  # Open the file in BBEdit
  
  bbedit "$file_path"
  
  exit 0
  </code></pre>