From: Elan Ruusamäe Date: Thu, 13 Sep 2012 19:14:28 +0000 (+0300) Subject: check errors X-Git-Tag: auto/th/crossnacl-binutils-2.20.1-4.gitbd55408.1~8 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fcrossnacl-binutils.git;a=commitdiff_plain;h=928d61cf90b1be7f1a9218d31316a27593780ac0 check errors --- diff --git a/get-source.sh b/get-source.sh index 68e0b81..8b403ba 100755 --- a/get-source.sh +++ b/get-source.sh @@ -21,10 +21,13 @@ specfile=crossnacl-binutils.spec chrome_channel=stable chrome_version=$(curl -s "$omahaproxy_url/?os=linux&channel=$chrome_channel" | awk -F, 'NR > 1{print $3}') +test -n "$chrome_version" chrome_revision=$(curl -s $omahaproxy_url/revision?version=$chrome_version) +test -n "$chrome_revision" chrome_branch=$(IFS=.; set -- $chrome_version; echo $3) test -e DEPS.py || svn cat http://src.chromium.org/chrome/branches/$chrome_branch/src/DEPS@$chrome_revision > DEPS.py nacl_revision=$(awk -F'"' '/nacl_revision.:/{print $4}' DEPS.py) +test -n "$nacl_revision" export GIT_DIR=$package/.git