From be44b1a0f522ed2b8c78e2e1caf1f48b65b74754 Mon Sep 17 00:00:00 2001 From: Jakub Dorfman Date: Sun, 26 Apr 2026 23:09:19 +0200 Subject: [PATCH] Ensure grep command in cmd_render_route does not fail if APP_ROUTE_FILE is missing Co-authored-by: Copilot --- panel/panelctl.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panel/panelctl.sh b/panel/panelctl.sh index 4732113..2730690 100644 --- a/panel/panelctl.sh +++ b/panel/panelctl.sh @@ -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