cros_workon: check for existence of local manifest before cat

* Fixes a dumb error message

	modified:   cros_workon

Review URL: http://codereview.chromium.org/3129008
This commit is contained in:
Zdenek Behan 2010-08-10 18:27:25 -07:00
parent a1c046d469
commit 077af11ba9

View File

@ -132,7 +132,8 @@ regen_manifest_and_sync() {
local_manifest="${REPODIR}/local_manifest.xml" local_manifest="${REPODIR}/local_manifest.xml"
# preserve old manifest entries # preserve old manifest entries
MANIFEST_ENTRIES_OLD=$(cat "${local_manifest}" | grep "^<project") [ -f "${local_manifest}" ] && \
MANIFEST_ENTRIES_OLD=$(cat "${local_manifest}" | grep "^<project")
rm -f "${local_manifest}" rm -f "${local_manifest}"