aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2016-04-26 02:06:09 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2016-04-26 02:06:09 +0300
commit2a04c08b72d14c8ef8ad2a69c72eac8a97f3e7ef (patch)
tree00857b96b76246c0960bf46cb18effa6cda2acfa
parentstrip extra whitespace (diff)
downloadlinux-home-2a04c08b72d14c8ef8ad2a69c72eac8a97f3e7ef.tar.gz
linux-home-2a04c08b72d14c8ef8ad2a69c72eac8a97f3e7ef.zip
code style
-rw-r--r--.bashrc10
1 files changed, 6 insertions, 4 deletions
diff --git a/.bashrc b/.bashrc
index 3fa6a1b..359a0bf 100644
--- a/.bashrc
+++ b/.bashrc
@@ -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() {