diff --git a/maint/utils/travis-build.sh b/maint/utils/travis-build.sh index 326ec9d35..58f1ba043 100755 --- a/maint/utils/travis-build.sh +++ b/maint/utils/travis-build.sh @@ -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