about summary refs log tree commit diff stats
path: root/Makefile
diff options
context:
space:
mode:
authortoonn <toonn@toonn.io>2020-12-31 18:55:55 +0100
committertoonn <toonn@toonn.io>2020-12-31 18:55:55 +0100
commit46c378fd41632e2aa775917bf0079441f070caa8 (patch)
tree928655063cd3db55f910c50f6e4a26744197f8f5 /Makefile
parent521d9f89f5bc3572f54033d04f8ebac26ffa10c6 (diff)
downloadranger-46c378fd41632e2aa775917bf0079441f070caa8.tar.gz
Change sed invocation for POSIX compliance
`\s` is a GNU-ism not found in BSD sed. Both implementations support the
equivalent `[:blank:]` character class.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
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: