diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-06-21 11:26:23 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-06-21 11:26:23 +1200 |
commit | 685234af1f48e976fd57ec04d4a253bcabfad4ea (patch) | |
tree | e8b232b7d2a9ffc9f18b5fa82667277ceff98e0b /bash/bashrc.d/keep.bash | |
parent | Remove unneeded line-break backslashes (diff) | |
download | dotfiles-685234af1f48e976fd57ec04d4a253bcabfad4ea.tar.gz dotfiles-685234af1f48e976fd57ec04d4a253bcabfad4ea.zip |
Remove unneeded linebreak backslashes
Handy command:
$ find bin sh bash -type f -exec grep \
-e '|| \\$' \
-e '&& \\$' \
-e '^\s*||' \
-e '^\s*&&' \
{} +
Diffstat (limited to 'bash/bashrc.d/keep.bash')
-rw-r--r-- | bash/bashrc.d/keep.bash | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/bash/bashrc.d/keep.bash b/bash/bashrc.d/keep.bash index 28b3e8f7..c7e42e04 100644 --- a/bash/bashrc.d/keep.bash +++ b/bash/bashrc.d/keep.bash @@ -103,8 +103,7 @@ EOF # If -d was given, delete the keep files for the NAME if ((delete)) ; then - rm -- "$bashkeep"/"$name".bash \ - || ((errors++)) + rm -- "$bashkeep"/"$name".bash || ((errors++)) # Otherwise, attempt to create the keep file, using an # appropriate call to the declare builtin @@ -116,8 +115,7 @@ EOF *) declare -p -- "$name" ;; - esac ; } > "$bashkeep"/"$name".bash \ - || ((errors++)) + esac ; } > "$bashkeep"/"$name".bash || ((errors++)) fi ;; esac |