aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rw-r--r--bin/mi5.awk6
1 files changed, 2 insertions, 4 deletions
diff --git a/bin/mi5.awk b/bin/mi5.awk
index 0bcc1930..2deec375 100644
--- a/bin/mi5.awk
+++ b/bin/mi5.awk
@@ -11,13 +11,11 @@ BEGIN {
NR == 1 { printf "`" }
# Blocks
-NF == 1 && $1 == open && !mac {
- mac = 1
+NF == 1 && $1 == open && !mac++ {
printf "'"
next
}
-NF == 1 && $1 == shut && mac {
- mac = 0
+NF == 1 && $1 == shut && mac-- {
printf "`"
next
}