From 4274227417afa675ac85de2f244536758f662bef 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 --- panelctl.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panelctl.sh b/panelctl.sh index 4732113..2730690 100644 --- a/panelctl.sh +++ b/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