Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(208)

Unified Diff: cros_mark_all_as_stable

Issue 3032021: Need $ on same line to not eval hash as command in bash (Closed) Base URL: ssh://git@chromiumos-git//crosutils.git
Patch Set: Fix space Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cros_mark_all_as_stable
diff --git a/cros_mark_all_as_stable b/cros_mark_all_as_stable
index 3d7967bc2c4ed6bae2d5089f89ef67204144f443..562d6110140735ed7e8abba88b13b471a0d5879a 100755
--- a/cros_mark_all_as_stable
+++ b/cros_mark_all_as_stable
@@ -47,8 +47,8 @@ for package in ${PACKAGES}; do
eval $(${EBUILDCMD} ${ebuild_path} info) &> /dev/null || continue
head_commit=$( cd "${CROS_WORKON_SRCDIR}" &&\
bash -c "${GRAB_HEAD_COMMIT_CMD}" ) || continue
- egit_commit=\
- $(eval echo $(grep CROS_WORKON_COMMIT ${ebuild_path} | cut -f 2 -d '=')) ||\
+ egit_commit=$(\
+ eval echo $(grep CROS_WORKON_COMMIT ${ebuild_path} | cut -f 2 -d '=')) ||\
Christopher Covington 2010/07/26 16:36:24 Too late now, but just a thought for the record. T
echo "No CROS_WORKON_COMMIT found in ${ebuild_path}"
if [[ ${head_commit} != ${egit_commit} ]] && \
[ -n "${head_commit}" ]; then
@@ -56,6 +56,8 @@ for package in ${PACKAGES}; do
"HEAD ${head_commit} != CROS_WORKON_COMMIT ${egit_commit} for ${package}"
PACKAGE_LIST="${PACKAGE_LIST} ${package}"
COMMIT_ID_LIST="${COMMIT_ID_LIST} ${head_commit}"
+ elif [[ ${head_commit} = ${egit_commit} ]]; then
+ info "Commit id's match for ${package}"
fi
done
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698