From e1f1ec9188019d400013da1dd19a536fbbff36c6 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 6 Jun 2016 22:05:54 +0300 Subject: add ltrim_utf8_bom --- .bashrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.bashrc b/.bashrc index 1f80cd9..55cc9ee 100644 --- a/.bashrc +++ b/.bashrc @@ -254,6 +254,7 @@ alias rtrim_file_newlines_dos='sed --binary --in-place -e :a -e '"'"'/^\(\r\n\)* alias rtrim_file_newlines_unix='sed --binary --in-place -e :a -e '"'"'/^\n*$/{$d;N;ba}'"'" alias ensure_eol_dos='sed --binary --in-place -e '"'"'$s/\r\?$/\r/;a\'"'" alias ensure_eol_unix='sed --binary --in-place -e '"'"'$a\'"'" +alias ltrim_utf8_bom='sed --binary --in-place '"'"'s/^\xef\xbb\xbf//'"'" lint() { rtrim_line_whitespace "$@" \ @@ -277,7 +278,7 @@ doslint_all() { list_files "$@" | while read -r path ; do doslint "$path" ; done } -doslint_netwrix() { +doslint_webapi() { local root_dir='/cygdrive/c/Netwrix Auditor/CurrentVersion-AuditCore-Dev/AuditCore/Sources' pushd "$root_dir/Configuration" > /dev/null \ && doslint_all 'WebAPI*.acinc' 'WebAPI*.acconf' \ -- cgit v1.2.3