nix/modules/home-manager/scripts/common/bin/archive
2023-10-05 13:43:28 -05:00

5 lines
149 B
Bash
Executable file

#!/usr/bin/env bash
archive_name="$(basename "${1}").tar.zstd"
tar --zstd -cvf "${archive_name}" "${@}"
echo "Archive created at: ${archive_name} "