triggers/register_shell: wrap long lines.
--HG-- extra : convert_revision : d35626bc3eceac278e68b3b96f60934611cec8d5
This commit is contained in:
@@ -32,7 +32,8 @@ run)
|
|||||||
cat ${shells_file} | while read line; do
|
cat ${shells_file} | while read line; do
|
||||||
if ! grep -q $line ./etc/shells; then
|
if ! grep -q $line ./etc/shells; then
|
||||||
echo $line >> ./etc/shells
|
echo $line >> ./etc/shells
|
||||||
echo "Registered $line into /etc/shells."
|
echo -n "Registered $line into "
|
||||||
|
echo "/etc/shells."
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
@@ -41,9 +42,10 @@ run)
|
|||||||
if [ -f ./etc/shells ]; then
|
if [ -f ./etc/shells ]; then
|
||||||
cat ${shells_file} | while read line; do
|
cat ${shells_file} | while read line; do
|
||||||
if grep -q $line ./etc/shells; then
|
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
|
sed -i -e "/$shell/d" ./etc/shells
|
||||||
echo "Unregistered $line from /etc/shells."
|
echo -n "Unregistered $line from "
|
||||||
|
echo "/etc/shells."
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user