about summary refs log tree commit diff
path: root/mcolor
diff options
context:
space:
mode:
Diffstat (limited to 'mcolor')
-rwxr-xr-xmcolor5
1 files changed, 1 insertions, 4 deletions
diff --git a/mcolor b/mcolor
index 5a60adf..6ef43e1 100755
--- a/mcolor
+++ b/mcolor
@@ -1,9 +1,6 @@
-#!/bin/sh
+#!/usr/bin/awk -f
 # mcolor - colorize rendered mail
 
-# restart as awk script
-true + /; exec awk -f "$0"; exit; / {}
-
 function co(n, c) { e = ENVIRON["MCOLOR_" n]; return e ? e : c }
 function fg(c, s) { return sprintf("\033[38;5;%03dm%s\033[0m", c, s) }
 function so(s) { return sprintf("\033[1m%s\033[0m", s) }