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
ca6914c162
commit
4274227417
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.
|
# Strip any existing block for this app from the aggregate file.
|
||||||
if [[ -f "${APP_ROUTE_FILE}" ]]; then
|
if [[ -f "${APP_ROUTE_FILE}" ]]; then
|
||||||
grep -v "^# route:${name}:" "${APP_ROUTE_FILE}" >"${tmp}"
|
grep -v "^# route:${name}:" "${APP_ROUTE_FILE}" >"${tmp}" || true
|
||||||
else
|
else
|
||||||
printf "" >"${tmp}"
|
printf "" >"${tmp}"
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue