diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-11-10 11:44:35 +0100 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-11-10 11:44:35 +0100 |
commit | 09e3e0945dd31005f10d7cc18ccd5b38fdb58f97 (patch) | |
tree | 2d61890eb3639ee77b0f2f0ac7b7905b9fa6b56f | |
parent | f1bb5ec20fcc323ec50eff2d726c5027e18589f6 (diff) |
refactor
-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) |