X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage2%2Fhv-utilities%2Ftarbz2;h=e7a6d93b23c49a7db91c7a89f0299ec662e412d2;hb=f920c7ef750f2163b9e407cc453b192ede2c185a;hp=e2b50c90f42801e09ee49601b3f66a12b028e1a9;hpb=b2f91df3e7c1d1ca93ced97b5001e3134243666b;p=hvlinux.git diff --git a/stage2/hv-utilities/tarbz2 b/stage2/hv-utilities/tarbz2 index e2b50c9..e7a6d93 100755 --- a/stage2/hv-utilities/tarbz2 +++ b/stage2/hv-utilities/tarbz2 @@ -12,6 +12,7 @@ if [ $# -ne 1 ]; then fi DIR=${1%/} +BASE=$(basename ${DIR}) # Checking if directory exists. if [ ! -d ${DIR} ]; then @@ -20,6 +21,6 @@ if [ ! -d ${DIR} ]; then fi # Decompressing file to standard output and piping result to bzip2 -tar cvf - ${DIR} | bzip2 -9 > ${DIR}.tar.bz2 +tar cvf - ${DIR} | bzip2 -9 > ${BASE}.tar.bz2 exit $?