From 0bf0fc2dabd545eefa194bb41f75f88f010af1b7 Mon Sep 17 00:00:00 2001 From: lxoliva Date: Tue, 31 Mar 2009 18:43:31 +0000 Subject: [PATCH] =?utf8?q?Fix=20poor-man's=20dirname=20implementation.=20?= =?utf8?q?=20Reported=20by=20Mat=C3=ADas=20A.=20Fonzo.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit git-svn-id: http://www.fsfla.org/svn/fsfla/software/linux-libre/scripts@4811 559672b5-ba27-0410-b829-e8f1faed8b1b --- deblob-main | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deblob-main b/deblob-main index 71840776c75..51e232a1369 100755 --- a/deblob-main +++ b/deblob-main @@ -63,7 +63,7 @@ esac mver=$1 extra=$2 sver=$3 kver=$mver$sver libre=libre$extra -deblob= dir=`echo $0 | sed 's,/[^/]*$,,'` +deblob= dir=`echo "$0" | sed 's,[^/]*$,,;s,^$,.,;s,/*$,,'` if test ! -f linux-$kver.tar.bz2; then echo linux-$kver.tar.bz2 does not exist >&2 -- 2.31.1