summaryrefslogtreecommitdiff
path: root/bin/common
diff options
context:
space:
mode:
authorRaymaekers Luca <raymaekers.luca@gmail.com>2023-11-10 11:51:05 +0100
committerRaymaekers Luca <raymaekers.luca@gmail.com>2023-11-10 11:51:05 +0100
commit9a8d85fd9b0d8917d32bfb4e27bd3372dbbbc59b (patch)
tree2d61890eb3639ee77b0f2f0ac7b7905b9fa6b56f /bin/common
parent287c6dff37f75b1278e2c5cb8bb120c40a0e84e3 (diff)
parent09e3e0945dd31005f10d7cc18ccd5b38fdb58f97 (diff)
Merge branch 'main' of db:dotfiles
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)