Commit ce989396 authored by iv's avatar iv

nayuos: fix grep argument

grep '----- something' fails because of the '-' character
used for passing options:
grep: unrecognized option '----- something'
so only grep for the string 'something'
parent 78d9b44a
......@@ -96,7 +96,7 @@ context =
recipe = slapos.recipe.template:jinja2
template = {{ scripts_dir }}/cros_full_build.in
rendered = ${directory:run}/cros_full_build
md5sum = d6342b3a578fecd50ef86c6efd7b68bb
md5sum = 07cde435ed73c5730e928830280639e7
mode = 0700
context =
key bash_path bin:bash
......
......@@ -132,7 +132,7 @@ increase_revision_number ${CHROMIUM_OVERLAY}/chromeos-base/chromeos-sshd-init/
# bashrc modifications
BASH_EBUILD_DIR="${PORTAGE_STABLE}/app-shells/bash"
if ! grep '----- BEGIN NayuOS configuration -----' "${BASH_EBUILD_DIR}/files/dot-bashrc" > /dev/null ; then
if ! grep "BEGIN NayuOS configuration" "${BASH_EBUILD_DIR}/files/dot-bashrc" > /dev/null ; then
cat >> "${BASH_EBUILD_DIR}/files/dot-bashrc" <<EOF
# ----- BEGIN NayuOS configuration -----
......
......@@ -25,7 +25,7 @@ slapos.recipe.template = 2.9
recipe = slapos.recipe.template:jinja2
template = ${:_profile_base_location_}/instance.cfg
rendered = ${buildout:directory}/instance.cfg
md5sum = 0d26dd9f3f30504409142c6f701a9221
md5sum = afb5530b61a60b5061bbbb4606de4b07
mode = 0644
scripts_dir = ${:_profile_base_location_}/scripts
logo_dir = ${:_profile_base_location_}/logo
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment