Remove archive after extract fix.

This commit is contained in:
SuprDewd 2011-01-15 23:46:54 +00:00
commit 97cddd5538
2 changed files with 9 additions and 8 deletions

1
cache/DEBS_avail vendored Normal file

File diff suppressed because one or more lines are too long

View file

@ -42,9 +42,10 @@ function extract() {
unset REMOVE_ARCHIVE unset REMOVE_ARCHIVE
if test "$1" = "-r"; then if test "$1" = "-r"; then
REMOVE=1 REMOVE_ARCHIVE=1
shift shift
fi fi
if [[ -f $1 ]]; then if [[ -f $1 ]]; then
case $1 in case $1 in
*.tar.bz2) tar xvjf $1;; *.tar.bz2) tar xvjf $1;;
@ -72,4 +73,3 @@ function extract() {
echo "'$1' is not a valid file" echo "'$1' is not a valid file"
fi fi
} }