This repository has been archived on 2024-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/bin/unarchive

10 lines
186 B
Plaintext
Raw Normal View History

2019-12-05 16:09:52 -06:00
#!/usr/bin/env bash
archive_name="${1}"; shift
to_dir="$(basename $archive_name)"
mkdir -p "${to_dir}"
pushd "${to_dir}"
tar xzvf "${archive_name}"
echo "Unarchived to: ${to_dir}"
popd