aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2016-06-06 22:05:54 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2016-06-06 22:05:54 +0300
commite1f1ec9188019d400013da1dd19a536fbbff36c6 (patch)
tree13f4a786c9a2af15ca7b32e0d3d80a52eb9aa001
parentrename the project (diff)
downloadlinux-home-e1f1ec9188019d400013da1dd19a536fbbff36c6.tar.gz
linux-home-e1f1ec9188019d400013da1dd19a536fbbff36c6.zip
add ltrim_utf8_bom
Diffstat (limited to '')
-rw-r--r--.bashrc3
1 files changed, 2 insertions, 1 deletions
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' \