anchor.diff:  # This is the current stable release to default to, with Omnibus patch level (e.g. 10.12.0-1)
   # Note that the chef template downloads 'x.y.z' not 'x.y.z-r' which should be a duplicate of the latest -r
   use_shell=0
  +
  +prerelease="false"
   
   # Check whether a command exists - returns 0 if it does, 1 if it does not
   exists() {
  
positive.code: 
  echo "Downloading Chef $version for ${platform}..."
  
  url="<%= locals[:download_url] %>?v=${version}&p=${platform}&pv=${platform_version}&m=${machine}"
  tmp_dir=$(mktemp -d -t tmp.XXXXXXXX || echo "/tmp")
  
  if exists wget;
  
negative.code: }
  
  # Get command line arguments
  while getopts spv: opt
  do
    case "$opt" in
      v)  version="$OPTARG";;
      s)  use_shell=1;;
      p)  prerelease="true";;
      \?)   # unknown flag
        echo >&2 \
        "usage: $0 [-s] [-v version]"
  