diff options
author | Filipp Lepalaan <filipp@mac.com> | 2010-02-20 12:37:10 +0200 |
---|---|---|
committer | Filipp Lepalaan <filipp@mac.com> | 2010-02-20 12:37:10 +0200 |
commit | 05655228858b3defa578cbaaa314ab8f7299ddeb (patch) | |
tree | 926929c7e10c27c6e49541062922665519701d49 /build_rsync.sh | |
parent | 4e860e3faed2a3bea16868a317f08071d0c1fc0e (diff) | |
download | mtk-05655228858b3defa578cbaaa314ab8f7299ddeb.tar.gz mtk-05655228858b3defa578cbaaa314ab8f7299ddeb.tar.bz2 mtk-05655228858b3defa578cbaaa314ab8f7299ddeb.zip |
Some fixes
Diffstat (limited to 'build_rsync.sh')
-rwxr-xr-x | build_rsync.sh | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/build_rsync.sh b/build_rsync.sh index 5f28dab..249f282 100755 --- a/build_rsync.sh +++ b/build_rsync.sh @@ -16,11 +16,22 @@ fi RSYNC_VERSION=$1 mkdir /tmp/build_rsync > /dev/null 2>&1 + cd /tmp/build_rsync +MIRROR="http://rsync.samba.org/ftp/rsync" + echo "Downloading rsync..." -curl --progress -O http://rsync.samba.org/ftp/rsync/rsync-${RSYNC_VERSION}.tar.gz > /dev/null 2>&1 -curl --progress -O http://rsync.samba.org/ftp/rsync/rsync-patches-${RSYNC_VERSION}.tar.gz > /dev/null 2>&1 +curl --progress -O ${MIRROR}/rsync-${RSYNC_VERSION}.tar.gz > /dev/null 2>&1 +if [[ $? -ne 0 ]]; then + echo "Failed to download rsync" 2>&1 + exit 1 +fi +curl --progress -O ${MIRROR}/rsync-patches-${RSYNC_VERSION}.tar.gz > /dev/null 2>&1 +if [[ $? -ne 0 ]]; then + echo "Failed to download rsync-patches" 2>&1 + exit 1 +fi echo "Extracting rsync..." tar -zxvf rsync-${RSYNC_VERSION}.tar.gz |