dmc

dynamic mail client
git clone git://git.suckless.org/dmc
Log | Files | Refs | README | LICENSE

commit 04588cd4d55df9ab88a95bc6777347db35ab6fdc
parent 1628ee23e1202be018894a0d9e0b23f1dd6329a1
Author: pancake@localhost.localdomain <unknown>
Date:   Sun,  8 Nov 2009 17:53:09 +0100

* Fix dmc-tag with absolute path file names
Diffstat:
dmc-tag | 11+++++------
1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/dmc-tag b/dmc-tag @@ -16,12 +16,11 @@ cd ${DMCTAG_ROOT} set_file () { FILE=$1 - if [ -e "${OLDPWD}/${FILE}" ]; then - if [ ! "`echo ${FILE} | cut -c 1`" = / ]; then - # autocomplete relative paths - FILE="${OLDPWD}/${FILE}" - fi - else + if [ ! "`echo ${FILE} | cut -c 1`" = / ]; then + # autocomplete relative paths + FILE="${OLDPWD}/${FILE}" + fi + if [ ! -e "${FILE}" ]; then echo "Cannot find ${FILE}" exit 1 fi