diff options
author | Todd Zullinger <tmz@pobox.com> | 2008-12-06 16:31:19 -0500 |
---|---|---|
committer | Todd Zullinger <tmz@pobox.com> | 2008-12-06 16:38:32 -0500 |
commit | aecce55da9579f7ce9d4ed9d199469e0245ad7aa (patch) | |
tree | 22489e3711afdaed9a1e70f30753c978c5f41ff0 | |
parent | 063cda194910f53dbb7edc75755e8eadf3d2656a (diff) | |
download | license-check-aecce55da9579f7ce9d4ed9d199469e0245ad7aa.tar.gz license-check-aecce55da9579f7ce9d4ed9d199469e0245ad7aa.tar.xz license-check-aecce55da9579f7ce9d4ed9d199469e0245ad7aa.zip |
get-cvs-tree: replace wget with curl
-rwxr-xr-x | get-cvs-tree | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/get-cvs-tree b/get-cvs-tree index f2bb048..ea71f52 100755 --- a/get-cvs-tree +++ b/get-cvs-tree @@ -3,9 +3,9 @@ cvsseed="devel.tgz" seedurl="http://cvs.fedoraproject.org/webfiles/$cvsseed" -wget $seedurl -if [ $? -ne 0 ]; then - echo "$seedurl not found." +retcode=$(curl -s -w '%{http_code}' -O $seedurl) +if [ $? -ne 0 -o $retcode -ne 200 ]; then + echo "Failed to download $seedurl" exit 1; fi |