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 ca6914c162
commit 4274227417

View file

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