forked from CastroFidel/winehelper
added check dir for unpack
This commit is contained in:
parent
bc21f86c5e
commit
3d13137677
@ -235,6 +235,7 @@ unpack () {
|
|||||||
*.tar.zst) local command="tar -I zstd -xhf" ;;
|
*.tar.zst) local command="tar -I zstd -xhf" ;;
|
||||||
*.tar) local command="tar -xhf" ;;
|
*.tar) local command="tar -xhf" ;;
|
||||||
esac
|
esac
|
||||||
|
create_new_dir "$2"
|
||||||
if $command "$1" -C "$2" ; then
|
if $command "$1" -C "$2" ; then
|
||||||
print_ok "Архив $1 распакован."
|
print_ok "Архив $1 распакован."
|
||||||
return 0
|
return 0
|
||||||
|
Loading…
Reference in New Issue
Block a user