maint: simplify dist extension stripping in Travis build script

Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
This commit is contained in:
Yury V. Zaytsev 2016-03-05 12:22:27 +01:00
parent b98cf5c2cb
commit 4d5c1b2ad8

View File

@ -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