From 32195b8a396e0cf4a8ba040fba3e90c93b6c4c4e Mon Sep 17 00:00:00 2001 From: danmosemsft Date: Mon, 31 Aug 2015 22:04:23 -0700 Subject: [PATCH] Fix remove_bom script to automatically run on all py files below the current directory --- tools/remove_bom.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/remove_bom.sh b/tools/remove_bom.sh index e5c7ff7..191507d 100644 --- a/tools/remove_bom.sh +++ b/tools/remove_bom.sh @@ -1 +1 @@ -sed -b -i -e "1s/^\xEF\xBB\xBF//" $1 \ No newline at end of file +find . -name '*.py' -exec sed -b -i -e "1s/^\xEF\xBB\xBF//" {} \; \ No newline at end of file