From 46c378fd41632e2aa775917bf0079441f070caa8 Mon Sep 17 00:00:00 2001 From: toonn Date: Thu, 31 Dec 2020 18:55:55 +0100 Subject: Change sed invocation for POSIX compliance `\s` is a GNU-ism not found in BSD sed. Both implementations support the equivalent `[:blank:]` character class. --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 0cb35bd4..3479bb2d 100644 --- a/Makefile +++ b/Makefile @@ -123,7 +123,8 @@ test_py: test_pylint test_flake8 test_doctest test_pytest test_other test_shellcheck: @echo "$(bold)Running shellcheck...$(normal)" - sed '2,$$s/^\(\s*\)#/\1/' ./ranger/data/scope.sh | shellcheck -a - + sed '2,$$s/^\([[:blank:]]*\)#/\1/' ./ranger/data/scope.sh \ + | shellcheck -a - @echo test_other: -- cgit 1.4.1-2-gfad0