Fix bug where square bracket is not removed before appending new rule.

Change-Id: I5618b211abd69b4e3774fa6e4009183ef996a8d8

BUG=8815
TEST=run locally

Review URL: http://codereview.chromium.org/4498004
This commit is contained in:
Huyen Nguyen 2010-11-05 16:15:46 -07:00
parent 139ad9dca0
commit 1330edb593

View File

@ -166,7 +166,7 @@ fi
if [ -n "${FLAGS_subfolder}" ] && \
[ -f "${OMAHA_DIR}"/miniomaha.conf"" ] ; then
# Remove the ']' from the last line of the file so we can add another config.
sed -i '$d' < ${OMAHA_DIR}/miniomaha.conf
sed -i '$d' ${OMAHA_DIR}/miniomaha.conf
else
echo -e "config = [" > ${OMAHA_DIR}/miniomaha.conf
fi