anchor.diff:    # 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
  -  $download_filename = "$tmp_dir/$filename"
  +  download_filename="$tmp_dir/$filename"
   else
  -  $download_filename = "$cmdline_filename"
  -fi
  -
  -echo "Downloading to $download_filename..."
  -
  -do_download("$url", "$download_filename")
  -install_file($filetype, "$download_filename")
  -
  -if [ "x$tmp_dir" != "x" ]; then
  +  download_filename="$cmdline_filename"
  +fi
  +
  +do_download "$url"  "$download_filename"
  +install_file $filetype "$download_filename"
  +
  +if test "x$tmp_dir" != "x"; then
     rm -r "$tmp_dir"
   fi
   
  
positive.code: 
  url="<%= locals[:download_url] %>?v=${version}&prerelease=${prerelease}&p=${platform}&pv=${platform_version}&m=${machine}"
  
  unable_to_retrieve_package() {
    echo "Unable to retrieve a valid package!"
    report_bug
  
negative.code: os=`uname -s`
  
  # Retrieve Platform and Platform Version
  if test -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`
  elif test -f "/etc/debian_version"; then
    platform="debian"
    platform_version=`cat /etc/debian_version`
  elif test -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`
  
    # If /etc/redhat-release exists, we act like RHEL by default
    if test "$platform" = "fedora"; then
      # Change platform version for use below.
      platform_version="6.0"
    fi
    platform="el"
  elif test -f "/etc/system-release"; then
    platform=`sed 's/^\(.\+\) release.\+/\1/' /etc/system-release | tr '[A-Z]' '[a-z]'`
    platform_version=`sed 's/^.\+ release \([.0-9]\+\).*/\1/' /etc/system-release | tr '[A-Z]' '[a-z]'`
    # amazon is built off of fedora, so act like RHEL
    if test "$platform" = "amazon linux ami"; then
      platform="el"
      platform_version="6.0"
    fi
  # Apple OS X
  elif test -f "/usr/bin/sw_vers"; then
    platform="mac_os_x"
    # Matching the tab-space with sed is error-prone
    platform_version=`sw_vers | awk '/^ProductVersion:/ { print $2 }'`
  