summaryrefslogtreecommitdiff
path: root/scripts/calcurse-upgrade
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/calcurse-upgrade')
-rw-r--r--scripts/calcurse-upgrade8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/calcurse-upgrade b/scripts/calcurse-upgrade
index c7e9691..0d9b196 100644
--- a/scripts/calcurse-upgrade
+++ b/scripts/calcurse-upgrade
@@ -63,5 +63,13 @@ if grep -q -e '^auto_save=' -e '^auto_gc=' -e '^periodic_save=' \
-e '/^daemon.log=/{N;s/\n//}' "$CONFFILE" > "$tmpfile" || exit 1
mv "$tmpfile" "$CONFFILE" || exit 1
fi
+
+ awk '
+ BEGIN { FS=OFS="=" }
+ $1 == "general.systemdialogs" || $1 == "general.progressbar" \
+ { $2 = ($2 == "yes") ? "no" : "yes" }
+ { print }
+ ' < "$CONFFILE" > "$tmpfile" || exit 1
+ mv "$tmpfile" "$CONFFILE" || exit 1
fi