nixos-config/modules/home/scripts/scripts/compress.sh

10 lines
201 B
Bash
Raw Normal View History

2023-11-14 15:42:16 +01:00
#!/usr/bin/env bash
if (( $# == 1 )) then
2024-01-13 15:37:46 +01:00
# echo -ne "Archive name: "
# read name
# tar -cvzf "$name.tar.gz" $1
tar -cvzf "$1.tar.gz" $1
2023-11-14 15:42:16 +01:00
else
echo "Wrong number of arguments..."
fi