Skip to content

Commit 27a4d83

Browse files
committed
improve str_contains
1 parent 4ef7fb0 commit 27a4d83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

files/etc/init.d/https-dns-proxy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ output_ok() { output "$_OK_"; }
6565
output_okn() { output "${_OK_}\\n"; }
6666
output_fail() { output "$_FAIL_"; }
6767
output_failn() { output "${_FAIL_}\\n"; }
68-
str_contains() { [ -n "$1" ] &&[ -n "$2" ] && [ "${1//$2}" != "$1" ]; }
68+
str_contains() { [ "${1//$2}" != "$1" ]; }
6969
str_contains_word() { echo "$1" | grep -qw "$2"; }
7070
uci_add_list_if_new() {
7171
local PACKAGE="$1"

0 commit comments

Comments
 (0)