weechat/bin/wee: refactor
This commit is contained in:
parent
1faf64ad3d
commit
3eba54ab33
|
@ -13,8 +13,7 @@ rd() {
|
||||||
if [ -t 0 ]; then
|
if [ -t 0 ]; then
|
||||||
cat $@
|
cat $@
|
||||||
else
|
else
|
||||||
while read -r line
|
while read -r line; do
|
||||||
do
|
|
||||||
echo $line
|
echo $line
|
||||||
done
|
done
|
||||||
fi | sed '/^ *\(#\|$\)/ d;s/^/*/g'
|
fi | sed '/^ *\(#\|$\)/ d;s/^/*/g'
|
||||||
|
|
Loading…
Reference in a new issue