diff --git a/common/environment/setup/archive.sh b/common/environment/setup/archive.sh index 813c0cf863a..f990e34b8ed 100644 --- a/common/environment/setup/archive.sh +++ b/common/environment/setup/archive.sh @@ -76,16 +76,16 @@ vextract() { if [ "$dst" ]; then cd "$dst"; fi case ${sfx} in gz) - gunzip -f $archive + gunzip -f ${archive##*/} ;; bz2) - bunzip2 -f $archive + bunzip2 -f ${archive##*/} ;; xz) - unxz -f $archive + unxz -f ${archive##*/} ;; zst) - unzstd $archive + unzstd ${archive##*/} ;; esac )