projects
/
gentoolkit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8190a72
)
Don't add an additional new line at the end of file.
author
idl0r
<idl0r@gentoo.org>
Mon, 26 Oct 2009 08:47:45 +0000
(08:47 -0000)
committer
idl0r
<idl0r@gentoo.org>
Mon, 26 Oct 2009 08:47:45 +0000
(08:47 -0000)
svn path=/trunk/gentoolkit/; revision=691
bin/euse
patch
|
blob
|
history
diff --git
a/bin/euse
b/bin/euse
index 10f75b0dda735034da3c9b77fd7f2b7ebb5f9aba..ca9835ecea46dd328212a80203a7b6108115a0b8 100755
(executable)
--- a/
bin/euse
+++ b/
bin/euse
@@
-520,6
+520,7
@@
modify() {
(while [ "$x" -eq "0" ]; do
read -r line
x="$?"
+ [[ "${x}" -ne "0" ]] && break
[ "${line:0:4}" == "USE=" ] && inuse=1
[ "${inuse}" == "0" ] && echo -E "${line}"
if [ "${inuse}" == "1" ] && echo "${line}" | egrep '" *(#.*)?$' > /dev/null; then