anchor.diff:  done
   shift `expr $OPTIND - 1`
   
  -machine=$(printf `uname -m`)
  +machine=`uname -m`
  +os=`uname -s`
   
   # Retrieve Platform and Platform Version
   if [ -f "/etc/lsb-release" ] && grep -q DISTRIB_ID /etc/lsb-release;
   then
  -  platform=$(grep DISTRIB_ID /etc/lsb-release | cut -d "=" -f 2 | tr '[A-Z]' '[a-z]')
  -  platform_version=$(grep DISTRIB_RELEASE /etc/lsb-release | cut -d "=" -f 2)
  +  platform=`grep DISTRIB_ID /etc/lsb-release | cut -d "=" -f 2 | tr '[A-Z]' '[a-z]'`
  +  platform_version=`grep DISTRIB_RELEASE /etc/lsb-release | cut -d "=" -f 2`
   elif [ -f "/etc/debian_version" ];
   then
     platform="debian"
  -  platform_version=$(printf `cat /etc/debian_version`)
  +  platform_version=`cat /etc/debian_version`
   elif [ -f "/etc/redhat-release" ];
   then
  -  platform=$(sed 's/^\(.\+\) release.*/\1/' /etc/redhat-release | tr '[A-Z]' '[a-z]')
  -  platform_version=$(sed 's/^.\+ release \([.0-9]\+\).*/\1/' /etc/redhat-release)
  +  platform=`sed 's/^\(.\+\) release.*/\1/' /etc/redhat-release | tr '[A-Z]' '[a-z]'`
  +  platform_version=`sed 's/^.\+ release \([.0-9]\+\).*/\1/' /etc/redhat-release`
   
     # If /etc/redhat-release exists, we act like RHEL by default
     if [ "$platform" = "fedora" ];
  
positive.code: #!/bin/bash
  
  # 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
  
negative.code: echo "Downloading Chef $version for ${platform}..."
  
  url="<%= locals[:download_url] %>?v=${version}&prerelease=${prerelease}&p=${platform}&pv=${platform_version}&m=${machine}"
  
  if [ "x$TMPDIR" = "x" ]; then
    tmp=$TMPDIR
  else
    tmp="/tmp"
  fi
  
  # secure-ish temp dir creation without having mktemp available (DDoS-able but not expliotable)
  tmp_dir="$tmp/install.sh.$$"
  (umask 077 && mkdir $tmp_dir) || exit 1
  
  if exists wget;
  then
  