diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2016-04-26 02:06:09 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2016-04-26 02:06:09 +0300 |
commit | 2a04c08b72d14c8ef8ad2a69c72eac8a97f3e7ef (patch) | |
tree | 00857b96b76246c0960bf46cb18effa6cda2acfa | |
parent | strip extra whitespace (diff) | |
download | linux-home-2a04c08b72d14c8ef8ad2a69c72eac8a97f3e7ef.tar.gz linux-home-2a04c08b72d14c8ef8ad2a69c72eac8a97f3e7ef.zip |
code style
Diffstat (limited to '')
-rw-r--r-- | .bashrc | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -230,13 +230,15 @@ alias ensure_ends_with_dos_newline='sed --binary --in-place -e '"'"'$s/\r\?$/\r/ alias ensure_ends_with_unix_newline='sed --binary --in-place -e '"'"'$a\'"'" sanitize_dos_files() { - trim_trailing_whitespace "$@" && trim_trailing_dos_newlines "$@" && ensure_ends_with_dos_newline "$@" - return $? + trim_trailing_whitespace "$@" \ + && trim_trailing_dos_newlines "$@" \ + && ensure_ends_with_dos_newline "$@" } sanitize_unix_files() { - trim_trailing_whitespace "$@" && trim_trailing_unix_newlines "$@" && ensure_ends_with_unix_newline "$@" - return $? + trim_trailing_whitespace "$@" \ + && trim_trailing_unix_newlines "$@" \ + && ensure_ends_with_unix_newline "$@" } backup_repo() { |