projects
/
hvlinux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Règle le bug:
[hvlinux.git]
/
stage2
/
hv-utilities
/
tarbz2
diff --git
a/stage2/hv-utilities/tarbz2
b/stage2/hv-utilities/tarbz2
index
cec3194
..
e7a6d93
100755
(executable)
--- a/
stage2/hv-utilities/tarbz2
+++ b/
stage2/hv-utilities/tarbz2
@@
-11,7
+11,8
@@
if [ $# -ne 1 ]; then
exit 1
fi
exit 1
fi
-DIR=${1}
+DIR=${1%/}
+BASE=$(basename ${DIR})
# Checking if directory exists.
if [ ! -d ${DIR} ]; then
# 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
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 $?
exit $?