mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 15:00:13 +01:00
add scripts
This commit is contained in:
parent
b26b361ebd
commit
14ad3c7749
3 changed files with 20 additions and 0 deletions
9
modules/home/scripts/scripts/compress.sh
Normal file
9
modules/home/scripts/scripts/compress.sh
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
if (( $# == 1 )) then
|
||||
echo -ne "Archive name: "
|
||||
read name
|
||||
tar -cvzf "$name.tar.gz" $1
|
||||
else
|
||||
echo "Wrong number of arguments..."
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue