mirror of https://github.com/MidnightCommander/mc
maint: simplify dist extension stripping in Travis build script
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
This commit is contained in:
parent
b98cf5c2cb
commit
4d5c1b2ad8
|
@ -40,7 +40,7 @@ mkdir -p distrib && cd $_
|
|||
make dist-bzip2
|
||||
|
||||
DISTFILE=$(ls mc-*.tar.bz2)
|
||||
DISTDIR=$(echo $DISTFILE | sed 's/\.tar\.bz2$//g')
|
||||
DISTDIR=$(basename "$DISTFILE" .tar.bz2)
|
||||
|
||||
tar -xjf $DISTFILE
|
||||
cd $DISTDIR
|
||||
|
|
Loading…
Reference in New Issue