From a5a43eaf548c6f9ebd3f498e27539c328d873389 Mon Sep 17 00:00:00 2001 From: juan Date: Sat, 14 Mar 2009 08:41:45 +0100 Subject: [PATCH] triggers/register_shell: wrap long lines. --HG-- extra : convert_revision : d35626bc3eceac278e68b3b96f60934611cec8d5 --- triggers/register-shell | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/triggers/register-shell b/triggers/register-shell index 48737244305..15d9522e3c8 100755 --- a/triggers/register-shell +++ b/triggers/register-shell @@ -32,7 +32,8 @@ run) cat ${shells_file} | while read line; do if ! grep -q $line ./etc/shells; then echo $line >> ./etc/shells - echo "Registered $line into /etc/shells." + echo -n "Registered $line into " + echo "/etc/shells." fi done fi @@ -41,9 +42,10 @@ run) if [ -f ./etc/shells ]; then cat ${shells_file} | while read line; do if grep -q $line ./etc/shells; then - shell=$(echo $line | sed "s|\\/|\\\/|g") + shell=$(echo $line|sed "s|\\/|\\\/|g") sed -i -e "/$shell/d" ./etc/shells - echo "Unregistered $line from /etc/shells." + echo -n "Unregistered $line from " + echo "/etc/shells." fi done fi