From: idl0r Date: Mon, 26 Oct 2009 08:47:45 +0000 (-0000) Subject: Don't add an additional new line at the end of file. X-Git-Tag: gentoolkit-0.3.0_rc10~54 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=fa66f11aa5254b3242577d34f08f73d0997ad011;p=gentoolkit.git Don't add an additional new line at the end of file. svn path=/trunk/gentoolkit/; revision=691 --- 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