image_signing: ignore missing chrome_dev.conf

If we try to sign an image w/out Chrome, this file won't exist.
Run grep with the -s flag to silence those warnings.

BUG=chromium:418817
TEST=`cbuildbot storm-release` no longer warns
BRANCH=None

Change-Id: Ibac0978e3e4d9f89c00206a2dd21c1d71544f710
Reviewed-on: https://chromium-review.googlesource.com/221184
Reviewed-by: Gaurav Shah <gauravsh@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
This commit is contained in:
Mike Frysinger
2014-10-06 01:18:51 -04:00
committed by chrome-internal-fetch
parent 782300d093
commit 2b802de836

View File

@@ -51,7 +51,7 @@ main() {
# Verify that session_manager isn't configured to pass additional
# environment variables or command-line arguments to Chrome.
local config_path="$rootfs/etc/chrome_dev.conf"
local matches=$(grep "^[^#]" "${config_path}")
local matches=$(grep -s "^[^#]" "${config_path}")
if [ -n "$matches" ]; then
echo "FAIL: Found commands in $config_path:"
echo "$matches"