Don't add an additional new line at the end of file.
authoridl0r <idl0r@gentoo.org>
Mon, 26 Oct 2009 08:47:45 +0000 (08:47 -0000)
committeridl0r <idl0r@gentoo.org>
Mon, 26 Oct 2009 08:47:45 +0000 (08:47 -0000)
svn path=/trunk/gentoolkit/; revision=691

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