aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-04-05 15:01:19 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-04-05 15:01:19 +0000
commit4ca7a0a5b93d06198c580168fa45eb07a29e9f58 (patch)
tree13939f00d19e3811da6d2b919d6a82508a9ce06a
parentcc3f3a39d4a1b765f04db805288e008552794707 (diff)
downloadpaludis-4ca7a0a5b93d06198c580168fa45eb07a29e9f58.tar.gz
paludis-4ca7a0a5b93d06198c580168fa45eb07a29e9f58.tar.xz
Preserve whitespace on elog messages
-rw-r--r--hooks/demos/elog.bash.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/hooks/demos/elog.bash.in b/hooks/demos/elog.bash.in
index ad37e9b..2b0cb06 100644
--- a/hooks/demos/elog.bash.in
+++ b/hooks/demos/elog.bash.in
@@ -56,9 +56,9 @@ case "${HOOK}" in
echo
old_pf=""
while read line ; do
- line_status=$(echo ${line} | cut -d' ' -f1 )
- line_pf=$(echo ${line} | cut -d' ' -f2 )
- line_message=$(echo ${line} | cut -d' ' -f3- )
+ line_status=$(echo "${line}" | cut -d' ' -f1 )
+ line_pf=$(echo "${line}" | cut -d' ' -f2 )
+ line_message=$(echo "${line}" | cut -d' ' -f3- )
if [[ "${old_pf}" != "${line_pf}" ]] ; then
echo