setup/archive: non-tar gz/xz fix non non-supplied $dst

This commit is contained in:
Đoàn Trần Công Danh
2024-01-20 14:30:19 +07:00
parent e8c1c1d985
commit ea2839018e
+1 -1
View File
@@ -71,7 +71,7 @@ vextract() {
-f $archive
;;
gz|bz2|xz|zst)
cp -f $archive "$dst"
cp -f $archive "${dst:-.}"
(
if [ "$dst" ]; then cd "$dst"; fi
case ${sfx} in