blob: e98b27dd9bdc9f736b1e6d964dccb9770624c9a5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#! /usr/bin/env bash
while read; do
KEY="${REPLY%%=*}"
VALUE="${REPLY#*=}"
if [ "$KEY" = "LoopOnGotoUnread" ]; then
case "$VALUE" in
[Ff][Aa][Ll][Ss][Ee]|0)
echo "LoopOnGotoUnread=0"
;;
2) # we were run already, be nice and don't change anything
echo "LoopOnGotoUnread=2"
;;
*) # default
echo "LoopOnGotoUnread=1"
;;
esac
else
echo "$REPLY"
fi
done
|