Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: ca-60540
Fetching contributors…

Cannot retrieve contributors at this time

executable file 23 lines (18 sloc) 0.462 kB
#!/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
Jump to Line
Something went wrong with that request. Please try again.