From 1bb8a4c3daa03611c373797c1f64ff0cbc92238a Mon Sep 17 00:00:00 2001 From: Frost-Phoenix <67cyril6767@gmail.com> Date: Sat, 13 Jan 2024 15:37:46 +0100 Subject: [PATCH] simplify script --- modules/home/scripts/scripts/compress.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/home/scripts/scripts/compress.sh b/modules/home/scripts/scripts/compress.sh index b3d7d11..5c31e62 100755 --- a/modules/home/scripts/scripts/compress.sh +++ b/modules/home/scripts/scripts/compress.sh @@ -1,9 +1,10 @@ #!/usr/bin/env bash if (( $# == 1 )) then - echo -ne "Archive name: " - read name - tar -cvzf "$name.tar.gz" $1 + # echo -ne "Archive name: " + # read name + # tar -cvzf "$name.tar.gz" $1 + tar -cvzf "$1.tar.gz" $1 else echo "Wrong number of arguments..." fi \ No newline at end of file