From 34bf593fed308afb97457d5f94ae019977ba63c9 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 21 Dec 2009 08:51:12 +0000 Subject: [PATCH] =?utf8?q?tarbz2:=20cr=C3=A9e=20l'archive=20dans=20le=20r?= =?utf8?q?=C3=A9pertoire=20courant?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- stage2/hv-utilities/tarbz2 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 $? -- 2.20.1