From 112b60690c1450e5d064885e98bbb0fee3338c37 Mon Sep 17 00:00:00 2001 From: Michael Marineau Date: Wed, 25 Jun 2014 22:41:24 -0700 Subject: [PATCH] updates: fix running core_sign_update from update.zip --- core_sign_update | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core_sign_update b/core_sign_update index c29cb563d1..f327fb7660 100755 --- a/core_sign_update +++ b/core_sign_update @@ -10,6 +10,9 @@ # --public_keys update.pub.pem:update2.pub.pem SCRIPT_ROOT=$(dirname $(readlink -f "$0")) +# We have to simple-mindedly set GCLIENT_ROOT in case we're running from +# au-generator.zip because common.sh will fail while auto-detect it. +export GCLIENT_ROOT=$(readlink -f "${SCRIPT_ROOT}/../../") . "${SCRIPT_ROOT}/common.sh" || exit 1 DEFINE_string image "" "The image that should be sent to clients."