From 685234af1f48e976fd57ec04d4a253bcabfad4ea Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Tue, 21 Jun 2016 11:26:23 +1200 Subject: Remove unneeded linebreak backslashes Handy command: $ find bin sh bash -type f -exec grep \ -e '|| \\$' \ -e '&& \\$' \ -e '^\s*||' \ -e '^\s*&&' \ {} + --- bash/bashrc.d/keep.bash | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'bash/bashrc.d/keep.bash') 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 -- cgit v1.2.3