From 6d6745d65a2597cf22525c5458eccbbdbafcef6e Mon Sep 17 00:00:00 2001 From: Kuninori Morimoto Date: Wed, 6 Mar 2019 10:36:52 +0900 Subject: find: tidyup default_arg() It returned additional default args, but it will be issue for html. This patch exchange to retrun whole args Signed-off-by: Kuninori Morimoto --- scripts/find.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'scripts') diff --git a/scripts/find.py b/scripts/find.py index cbefcbe..9c02258 100755 --- a/scripts/find.py +++ b/scripts/find.py @@ -27,14 +27,14 @@ class find(base.base): match = 0 for cmd in arg: if (cmd == "-a"): - return [] + return arg if ((cmd == "-s") or (cmd == "-ns")): match = 1 if (not match): - return ["-ns", "Done"] + arg += ["-ns", "Done"] - return [] + return arg #-------------------- # parse_option @@ -101,7 +101,7 @@ class find(base.base): self.parse_files(arg) - arg += self.default_arg(arg) + arg = self.default_arg(arg) # -a : all # -s : matched status -- cgit v1.2.3