summaryrefslogtreecommitdiff
path: root/bin/euse
diff options
context:
space:
mode:
authoridl0r <idl0r@gentoo.org>2009-10-26 08:47:45 +0000
committeridl0r <idl0r@gentoo.org>2009-10-26 08:47:45 +0000
commitfa66f11aa5254b3242577d34f08f73d0997ad011 (patch)
tree07c2114b3f32d38911645c243284c20833449ea2 /bin/euse
parent8190a7299a618e0ce120fe1c894b944075576342 (diff)
downloadgentoolkit-fa66f11aa5254b3242577d34f08f73d0997ad011.tar.gz
Don't add an additional new line at the end of file.
svn path=/trunk/gentoolkit/; revision=691
Diffstat (limited to 'bin/euse')
-rwxr-xr-xbin/euse1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/euse b/bin/euse
index 10f75b0..ca9835e 100755
--- 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