From 928d61cf90b1be7f1a9218d31316a27593780ac0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Thu, 13 Sep 2012 22:14:28 +0300 Subject: [PATCH] check errors --- get-source.sh | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.43.0