Skip to content

Commit

Permalink
chore(maintenance_scripts: makefile_shellcheck): sync with upstream - 2
Browse files Browse the repository at this point in the history
  • Loading branch information
actionless committed Sep 10, 2024
1 parent 136cd79 commit 397d296
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions maintenance_scripts/makefile_shellcheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@
PHONY: Final = ".PHONY"
PRECIOUS: Final = ".PRECIOUS"
SKIP_TARGETS: Final = [PHONY, PRECIOUS]


_ALL: Final = "all"
DEFAULT_SHELL: Final = "sh"


def parse_args() -> argparse.Namespace:
Expand Down Expand Up @@ -43,7 +42,6 @@ def parse_args() -> argparse.Namespace:

parser.add_argument(
"--shell",
default="sh",
help="make shell",
)
parser.add_argument(
Expand Down Expand Up @@ -197,7 +195,7 @@ def shellcheck_maketarget(
shellcheck_args = [
"shellcheck",
fobj.name,
f"--shell={args.shell or make_shell or args.shell}",
f"--shell={args.shell or make_shell or DEFALT_SHELL}",
"--color=always",
]
shellcheck_args.extend([
Expand Down

0 comments on commit 397d296

Please sign in to comment.