mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
Remove archive after extract fix.
This commit is contained in:
parent
01b0366f3e
commit
97cddd5538
2 changed files with 9 additions and 8 deletions
1
cache/DEBS_avail
vendored
Normal file
1
cache/DEBS_avail
vendored
Normal file
File diff suppressed because one or more lines are too long
|
|
@ -42,9 +42,10 @@ function extract() {
|
|||
unset REMOVE_ARCHIVE
|
||||
|
||||
if test "$1" = "-r"; then
|
||||
REMOVE=1
|
||||
REMOVE_ARCHIVE=1
|
||||
shift
|
||||
fi
|
||||
|
||||
if [[ -f $1 ]]; then
|
||||
case $1 in
|
||||
*.tar.bz2) tar xvjf $1;;
|
||||
|
|
@ -72,4 +73,3 @@ function extract() {
|
|||
echo "'$1' is not a valid file"
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue