summaryrefslogtreecommitdiff
path: root/bin/common
diff options
context:
space:
mode:
authorRaymaekers Luca <raymaekers.luca@gmail.com>2023-11-10 11:44:35 +0100
committerRaymaekers Luca <raymaekers.luca@gmail.com>2023-11-10 11:44:35 +0100
commit09e3e0945dd31005f10d7cc18ccd5b38fdb58f97 (patch)
tree2d61890eb3639ee77b0f2f0ac7b7905b9fa6b56f /bin/common
parentf1bb5ec20fcc323ec50eff2d726c5027e18589f6 (diff)
refactor
Diffstat (limited to 'bin/common')
-rwxr-xr-xbin/common/targit5
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)