From 48e12b28c72319a7b4ef5ccdd32cb66c863eefd6 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 29 Dec 2007 17:56:30 +0000 Subject: Fix handling of leading / charactes some more. svn path=/main/trunk/; revision=9112 --- bin/ecompressdir | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/ecompressdir b/bin/ecompressdir index b65bd275a..2122250fc 100755 --- a/bin/ecompressdir +++ b/bin/ecompressdir @@ -97,9 +97,10 @@ ret=0 rm -rf "${T}"/ecompress-skip for dir in "$@" ; do + dir=${dir#/} dir="${D}${dir}" if [[ ! -d ${dir} ]] ; then - vecho "${0##*/}: ${dir#${D}} does not exist!" + vecho "${0##*/}: /${dir#${D}} does not exist!" continue fi cd "${dir}" -- cgit v1.2.3-1-g7c22