Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: ca-61929
Fetching contributors…

Cannot retrieve contributors at this time

executable file 22 lines (18 sloc) 0.462 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
#!/bin/sh
#
# Copyright (c) Citrix Systems 2008. All rights reserved.
#

# Simple script to upload a file or directory. If this script
# exits with code 0 we assume the upload was successful..

CRASH=$1
URL=$2
PROXY=$3

export http_proxy=$PROXY
export ftp_proxy=$PROXY

# If it's a directory then tar it up and stream. Otherwise just send the file
if [ -d $CRASH ];
then
  tar --sparse -cz $CRASH | curl -T - $URL 2>&1
else
  cat $CRASH | curl -T - $URL 2>&1
fi
Something went wrong with that request. Please try again.