Ensure grep command in cmd_render_route does not fail if APP_ROUTE_FILE is missing
Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
parent
dbec256b36
commit
be44b1a0f5
1 changed files with 1 additions and 1 deletions
|
|
@ -254,7 +254,7 @@ cmd_render_route() {
|
|||
|
||||
# Strip any existing block for this app from the aggregate file.
|
||||
if [[ -f "${APP_ROUTE_FILE}" ]]; then
|
||||
grep -v "^# route:${name}:" "${APP_ROUTE_FILE}" >"${tmp}"
|
||||
grep -v "^# route:${name}:" "${APP_ROUTE_FILE}" >"${tmp}" || true
|
||||
else
|
||||
printf "" >"${tmp}"
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue