fix(vortex-dns): Fix shell glob syntax error in zone list
Remove 2>/dev/null from for-loop glob pattern which causes syntax error in BusyBox ash shell. The [ -f "$zf" ] check handles the case when no zone files exist. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
ac4227a5f3
commit
592e46bde8
@ -444,7 +444,7 @@ cmd_zone_list() {
|
||||
done
|
||||
|
||||
# Also list zone files not in UCI
|
||||
for zf in "$ZONE_DIR"/*.zone 2>/dev/null; do
|
||||
for zf in "$ZONE_DIR"/*.zone; do
|
||||
[ -f "$zf" ] || continue
|
||||
local domain=$(basename "$zf" .zone)
|
||||
if ! uci show "$CONFIG" 2>/dev/null | grep -q "domain='$domain'"; then
|
||||
|
||||
Loading…
Reference in New Issue
Block a user