diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2016-08-13 23:50:48 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2016-08-13 23:50:48 +0200 |
commit | 8fec942ab9913a38423a4cfea37d29ea304ddd0e (patch) | |
tree | 5a7ea2c281ee34840ce6d4db5232707ff004f464 /.bashrc_text | |
parent | fix ShellCheck warnings (diff) | |
download | linux-home-8fec942ab9913a38423a4cfea37d29ea304ddd0e.tar.gz linux-home-8fec942ab9913a38423a4cfea37d29ea304ddd0e.zip |
code style
Diffstat (limited to '.bashrc_text')
-rw-r--r-- | .bashrc_text | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/.bashrc_text b/.bashrc_text index 2b32195..1641859 100644 --- a/.bashrc_text +++ b/.bashrc_text @@ -1,9 +1,9 @@ #!/usr/bin/env bash if [ -n "${BASHRC_TEXT+x}" ]; then - return 0 + return 0 else - readonly BASHRC_TEXT=1 + readonly BASHRC_TEXT=1 fi alias dos2eol='sed --binary --in-place '"'"'s/\(\r\?\)$//'"'" @@ -20,9 +20,9 @@ alias doseol='sed --binary --in-place '"'"'$s/\r\?$/\r/;a\'"'" alias trimbom='sed --binary --in-place '"'"'1 s/^\xef\xbb\xbf//'"'" lint() { - trim "$@" && trimeol "$@" && eol "$@" + trim "$@" && trimeol "$@" && eol "$@" } doslint() { - trim "$@" && trimdoseol "$@" && doseol "$@" + trim "$@" && trimdoseol "$@" && doseol "$@" } |