mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-10 14:36:58 +02:00
Whitespace/tab cleanup for cros_workon
Change-Id: I17379dc302fcad0f3a7f59771c48d86df320c0d0 BUG=NONE TEST=Manual diff inspection. Ran scripts and confirmed no syntax errors. Review URL: http://codereview.chromium.org/3335004
This commit is contained in:
parent
68fd512d31
commit
03a4dad734
32
cros_workon
32
cros_workon
@ -152,22 +152,22 @@ regen_manifest_and_sync() {
|
|||||||
|
|
||||||
# ensure we don't clobber existing manifest entries
|
# ensure we don't clobber existing manifest entries
|
||||||
if [ -f "${local_manifest}" ]; then
|
if [ -f "${local_manifest}" ]; then
|
||||||
grep -q -i "<remote" "${local_manifest}"
|
grep -q -i "<remote" "${local_manifest}"
|
||||||
if [ $? -ne 1 ]; then
|
if [ $? -ne 1 ]; then
|
||||||
die "Your local manifest will be clobbered running cros_workon. You can not have any <remote> tags at all."
|
die "Your local manifest will be clobbered running cros_workon. You can not have any <remote> tags at all."
|
||||||
fi
|
fi
|
||||||
sed -ne '/^[[:space:]]\+[^[:space:]]/q1' "${local_manifest}"
|
sed -ne '/^[[:space:]]\+[^[:space:]]/q1' "${local_manifest}"
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
die "Your local manifest will be clobbered running cros_workon. You can not have any tags that span multiple lines or are indented."
|
die "Your local manifest will be clobbered running cros_workon. You can not have any tags that span multiple lines or are indented."
|
||||||
fi
|
fi
|
||||||
egrep -q "^[^<]" "${local_manifest}"
|
egrep -q "^[^<]" "${local_manifest}"
|
||||||
if [ $? -ne 1 ]; then
|
if [ $? -ne 1 ]; then
|
||||||
die "Your local manifest will be clobbered running cros_workon. You can not have any tags that span multiple lines"
|
die "Your local manifest will be clobbered running cros_workon. You can not have any tags that span multiple lines"
|
||||||
fi
|
fi
|
||||||
grep -v "<project" "${local_manifest}" | grep -q -i "<project"
|
grep -v "<project" "${local_manifest}" | grep -q -i "<project"
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
die "Your local manifest has mixed case tags for project. You can not have mixed case tags"
|
die "Your local manifest has mixed case tags for project. You can not have mixed case tags"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
# preserve old manifest entries
|
# preserve old manifest entries
|
||||||
[ -f "${local_manifest}" ] && \
|
[ -f "${local_manifest}" ] && \
|
||||||
|
Loading…
Reference in New Issue
Block a user