From: Oleg Broytman Date: Tue, 31 Dec 2013 18:11:05 +0000 (+0400) Subject: Remove duplicate tests X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=16b3c5e75f3c97b363a1d885ec8bd6b49d055632;p=phdru.name%2Fphdru.name.git Remove duplicate tests --- 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()