From 150e13b5979d420f0ff0d2bf6b33b2e12820e164 Mon Sep 17 00:00:00 2001 From: Yuriy Syrovetskiy Date: Sat, 13 Nov 2021 12:08:36 +0300 Subject: [PATCH] Fix scripts/removeAnchors.sh on Mac --- scripts/removeAnchors.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/removeAnchors.sh b/scripts/removeAnchors.sh index 0d2e71381..f738c5d1a 100755 --- a/scripts/removeAnchors.sh +++ b/scripts/removeAnchors.sh @@ -3,7 +3,7 @@ # This script removes all code anchors to improve readability # All .purs & .js files in the src/ and test/ directories of chapter exercises. -FILES=$(find . -regextype posix-extended -regex '\./exercises/chapter[0-9]{1,2}/(src|test)/.*\.(purs|js)' -type f) +FILES=$(find -E . -regex '\./exercises/chapter[0-9]{1,2}/(src|test)/.*\.(purs|js)' -type f) for f in $FILES; do # Delete lines starting with an 'ANCHOR' comment