From: lxoliva Date: Tue, 31 Mar 2009 18:43:31 +0000 (+0000) Subject: Fix poor-man's dirname implementation. Reported by Matías A. Fonzo. X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=0bf0fc2dabd545eefa194bb41f75f88f010af1b7;p=releases.git Fix poor-man's dirname implementation. Reported by Matías A. Fonzo. git-svn-id: http://www.fsfla.org/svn/fsfla/software/linux-libre/scripts@4811 559672b5-ba27-0410-b829-e8f1faed8b1b --- 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