Skip to content

Commit

Permalink
fix: bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jonssonyan committed Jul 12, 2024
1 parent 34f1254 commit 7e133cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/forward.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ func ntfRemoveByComment(comment string) error {
}

func nftRules() ([]string, error) {
listOutput, err := util.Exec(fmt.Sprintf("nft list tables | grep %s", Comment))
listOutput, err := util.Exec(fmt.Sprintf("nft list tables | grep -q %s && echo 'found'", Comment))
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 7e133cb

Please sign in to comment.