summaryrefslogtreecommitdiff
path: root/moz-normalize-mozconfig
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-01-08 14:59:33 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-01-08 15:04:28 -0500
commit98a9cba0505689cf9a63411521038e340bffa1fc (patch)
tree258c942f751e97dcf45fa6972bf07e8ce3f2c038 /moz-normalize-mozconfig
parente589d617513767c99eb5e35f6fcdf74d6ed6b4fb (diff)
-mozconfig: strip trailing comments for _line
Diffstat (limited to 'moz-normalize-mozconfig')
-rwxr-xr-xmoz-normalize-mozconfig2
1 files changed, 1 insertions, 1 deletions
diff --git a/moz-normalize-mozconfig b/moz-normalize-mozconfig
index 92a848d..07a427e 100755
--- a/moz-normalize-mozconfig
+++ b/moz-normalize-mozconfig
@@ -10,7 +10,7 @@ urlencode() {
# class-id:line
classify-lines() {
while read line; do
- _line="$(printf '%s' "$line"|sed -r 's/^#(\S)/\1/')"
+ _line="$(printf '%s' "$line"|sed -r -e 's/^#(\S)/\1/' -e 's/ #.*//')"
class='other'
case "$_line" in
ac_add_options\ --enable-application=*) class=setapp;;