triggers/register_shell: wrap long lines.
--HG-- extra : convert_revision : d35626bc3eceac278e68b3b96f60934611cec8d5
This commit is contained in:
parent
f0887665fe
commit
a5a43eaf54
|
@ -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
|
||||
|
@ -43,7 +44,8 @@ run)
|
|||
if grep -q $line ./etc/shells; then
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue