triggers/register_shell: wrap long lines.

--HG--
extra : convert_revision : d35626bc3eceac278e68b3b96f60934611cec8d5
This commit is contained in:
juan 2009-03-14 08:41:45 +01:00
parent f0887665fe
commit a5a43eaf54
1 changed files with 5 additions and 3 deletions

View File

@ -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