dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 4801b9a034a04cc5d37161234056297320140b58
parent e2e12e2f30317203cc7a2bb1e6a59dd3f84c8b38
Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
Date:   Thu, 10 Mar 2016 14:49:04 -0800

make script usable with just 1 argument (input file)

Diffstat:
M.mutt/view_attachment.sh | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/.mutt/view_attachment.sh b/.mutt/view_attachment.sh @@ -92,8 +92,9 @@ fi # if the type is empty then try to figure it out. if [ -z $type ]; then + echo type is empty file $1 - type=`file -bi $1 | cut -d"/" -f2` + type=`file -bi $1 | cut -d"/" -f2 | sed 's/;.*$//'` fi # if the type is '-' then we don't want to mess with type.