10 lines
193 B
Plaintext
10 lines
193 B
Plaintext
|
#!/usr/bin/env bash
|
||
|
|
||
|
archive_name="${1}"; shift
|
||
|
to_dir="$(basename $archive_name)"
|
||
|
mkdir -p "${to_dir}"
|
||
|
pushd "${to_dir}"
|
||
|
tar --zstd -xvf "${archive_name}"
|
||
|
echo "Unarchived to: ${to_dir}"
|
||
|
popd
|