diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2016-06-06 22:05:54 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2016-06-06 22:05:54 +0300 |
commit | e1f1ec9188019d400013da1dd19a536fbbff36c6 (patch) | |
tree | 13f4a786c9a2af15ca7b32e0d3d80a52eb9aa001 | |
parent | rename the project (diff) | |
download | linux-home-e1f1ec9188019d400013da1dd19a536fbbff36c6.tar.gz linux-home-e1f1ec9188019d400013da1dd19a536fbbff36c6.zip |
add ltrim_utf8_bom
Diffstat (limited to '')
-rw-r--r-- | .bashrc | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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' \ |