diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-01-05 16:56:42 +0100 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-01-05 16:56:42 +0100 |
commit | e6e98313b9769b431d8a66c0aac2b82295d2bf1e (patch) | |
tree | 1cdbc2075815fa88a0b80818174542e00a41f855 /bin/common/targit | |
parent | 541ab2e483efe77d08ae5d04119a834f24b6d150 (diff) | |
parent | 0d10205772b2745356969176de6f52510527e5a6 (diff) |
Merge branch 'main' of db:dotfiles
Diffstat (limited to 'bin/common/targit')
-rwxr-xr-x | bin/common/targit | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/bin/common/targit b/bin/common/targit index ae046ac..ca560b3 100755 --- a/bin/common/targit +++ b/bin/common/targit @@ -1,6 +1,5 @@ #!/bin/sh -pwd=$(pwd) root="$(git rev-parse --show-toplevel)" cd "$root" || exit 1 -file="$(basename "$root" | sed 's/^\.//').tar.gz" -tar czf "$pwd/$file" $(git ls-files) +file="${root##*/}".tar.gz +tar czf "$file" $(git ls-files) |