mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-09 14:06:58 +02:00
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:
parent
139ad9dca0
commit
1330edb593
@ -166,7 +166,7 @@ fi
|
|||||||
if [ -n "${FLAGS_subfolder}" ] && \
|
if [ -n "${FLAGS_subfolder}" ] && \
|
||||||
[ -f "${OMAHA_DIR}"/miniomaha.conf"" ] ; then
|
[ -f "${OMAHA_DIR}"/miniomaha.conf"" ] ; then
|
||||||
# Remove the ']' from the last line of the file so we can add another config.
|
# 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
|
else
|
||||||
echo -e "config = [" > ${OMAHA_DIR}/miniomaha.conf
|
echo -e "config = [" > ${OMAHA_DIR}/miniomaha.conf
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user