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,6 +132,7 @@ regen_manifest_and_sync() {
|
||||
local_manifest="${REPODIR}/local_manifest.xml"
|
||||
|
||||
# preserve old manifest entries
|
||||
[ -f "${local_manifest}" ] && \
|
||||
MANIFEST_ENTRIES_OLD=$(cat "${local_manifest}" | grep "^<project")
|
||||
|
||||
rm -f "${local_manifest}"
|
||||
|
Loading…
Reference in New Issue
Block a user