mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-11 06:56:58 +02:00
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:
parent
a1c046d469
commit
077af11ba9
@ -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}"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user