From c2adfd9716de007625c04b31e44deb78601c1d9f Mon Sep 17 00:00:00 2001 From: ene Date: Sat, 11 Mar 2023 23:28:00 +0100 Subject: Fix(hm/conf/lf/cmd): Use correct vars in archive.sh --- home-manager/config/lf/cmds/archive.sh | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'home-manager/config/lf/cmds') diff --git a/home-manager/config/lf/cmds/archive.sh b/home-manager/config/lf/cmds/archive.sh index d319116d..86c3d12d 100644 --- a/home-manager/config/lf/cmds/archive.sh +++ b/home-manager/config/lf/cmds/archive.sh @@ -10,8 +10,6 @@ # times. set -f -fx="$*" - archivers=$(mktmp) echo "tar+zip tar+xz 7z zip" > $archivers; @@ -20,17 +18,17 @@ readp "File Name: " name case $(awk '{for (i=1; i<=NF; i++) print $i}' $archivers | fzf) in "tar+zip") - tar -czf "$name".tar.gz "$name" + tar -czf "$name".tar.gz "$fx" ;; "tar+xz") - tar -cf "$name".tar $fx + tar -cf "$name".tar "$fx" xz -z -9 -e -T0 "$name".tar ;; "7z") - 7z a "$name".7z $fx + 7z a "$name".7z "$fx" ;; "zip") - zip -r "$name".zip $fx + zip -r "$name".zip "$fx" ;; esac -- cgit 1.4.1