anchor.diff:  while getopts spv: opt
   do
     case "$opt" in
  +
       v)  version="$OPTARG";;
       s)  use_shell=1;;
       p)  prerelease="true";;
  +    f)  cmdline_filename="$OPTARG";;
       \?)   # unknown flag
         echo >&2 \
         "usage: $0 [-s] [-v version]"
  
positive.code:   exit 1
  }
  
  if [ "$downloader" = "curl" ]
  then
    #do curl stuff
    grep "The specified key does not exist." "$tmp_dir/$filename" 2>&1 >/dev/null
    if [ $? -eq 0 ] || [ ! -s "$tmp_dir/$filename" ]
    then
      unable_to_retrieve_package
    fi
  elif [ "$downloader" = "wget" ]
  then
    #do wget stuff
    grep "ERROR 404" /tmp/stderr 2>&1 >/dev/null
    if [ $? -eq 0 ] || [ ! -s "$tmp_dir/$filename" ]
    then
      unable_to_retrieve_package
    fi
  fi
  
  echo "Installing Chef $version"
  case "$filetype" in
    "rpm") rpm -Uvh "$tmp_dir/$filename" ;;
    "deb") dpkg -i "$tmp_dir/$filename" ;;
    "solaris") echo "conflict=nocheck" > /tmp/nocheck
  	     echo "action=nocheck" >> /tmp/nocheck
  	     echo "mail=" >> /tmp/nocheck
  	     pkgadd -n -d "$tmp_dir/$filename" -a /tmp/nocheck chef
  	     ;;
    "sh" ) bash "$tmp_dir/$filename" ;;
  esac
  
  if [ "$tmp_dir" != "/tmp" ];
  then
    rm -r "$tmp_dir"
  fi
  
  if [ $? -ne 0 ];
  then
    echo "Installation failed"
    report_bug
    exit 1
  fi
  
negative.code: tmp_dir="$tmp/install.sh.$$"
  (umask 077 && mkdir $tmp_dir) || exit 1
  
  unable_to_retrieve_package() {
    echo "Unable to retrieve a valid package!"
    report_bug
  