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:
Jakub Dorfman 2026-04-26 23:09:19 +02:00
parent dbec256b36
commit be44b1a0f5

View file

@ -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