summaryrefslogtreecommitdiff
path: root/bin/common/gt
diff options
context:
space:
mode:
authorRaymaekers Luca <raymaekers.luca@gmail.com>2024-10-16 21:26:22 +0200
committerRaymaekers Luca <raymaekers.luca@gmail.com>2024-10-16 21:26:22 +0200
commit2a55e6be7a8c2e6206874123ee7de7d433e33d0c (patch)
treef84e16a247a5c6698add54f52a9d47307fcb1379 /bin/common/gt
parent4cc108aba78ad5748f3de5cfa0155196199061ca (diff)
parent6e3c07b70a1f3082afa2115ccac790d859d83b7b (diff)
Merge branch 'main' of db:dotfiles
Diffstat (limited to 'bin/common/gt')
-rwxr-xr-xbin/common/gt1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/common/gt b/bin/common/gt
index d2ae3e5..78cc913 100755
--- a/bin/common/gt
+++ b/bin/common/gt
@@ -56,6 +56,7 @@ while getopts ":a:c:f:lsheu" opt; do
repo="$(git rev-parse --show-toplevel)"
remote_url="$(git remote show -n origin | awk '/^ Fetch/ {print $NF}')"
+ # TODO: check if remote_url is not empty
if grep "^$repo " "$REPOS" >/dev/null 2>&1; then
printf >&2 'added already.\n'