From 16b3c5e75f3c97b363a1d885ec8bd6b49d055632 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Tue, 31 Dec 2013 22:11:05 +0400 Subject: [PATCH] Remove duplicate tests --- dotfiles2html/dotfiles2html.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dotfiles2html/dotfiles2html.py b/dotfiles2html/dotfiles2html.py index 640cf15..b61423a 100755 --- a/dotfiles2html/dotfiles2html.py +++ b/dotfiles2html/dotfiles2html.py @@ -87,11 +87,11 @@ def process_dotfile(i, fname, ftype, file_types): text = text.replace('mplayerer', 'mplayer') if fname == 'mailcap': text = text.replace( - '-a -n "`which smplayer`" -a -n "`which smplayer`"', - '-a -n "`which smplayer`"') + '-a -n "`which smplayer 2>/dev/null`" -a -n "`which smplayer 2>/dev/null`"', + '-a -n "`which smplayer 2>/dev/null`"') text = text.replace( - '-a -n "`which mplayer`" -a -n "`which mplayer`"', - '-a -n "`which mplayer`"') + '-a -n "`which mplayer 2>/dev/null`" -a -n "`which mplayer 2>/dev/null`"', + '-a -n "`which mplayer 2>/dev/null`"') file.write(text) file.close() -- 2.39.2