aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2022-10-28 11:08:51 -0300
committerEuAndreh <eu@euandre.org>2022-10-28 11:08:51 -0300
commita260727ed61f9d000e290573eb3d2e6a23ae8190 (patch)
tree12443f3330ab60fd65d412d1f22a52757e951a24
parentbin/repos: Omit warning on not guessing the type of repository (diff)
downloaddotfiles-a260727ed61f9d000e290573eb3d2e6a23ae8190.tar.gz
dotfiles-a260727ed61f9d000e290573eb3d2e6a23ae8190.tar.xz
bin/repos: Only print the repository name, not its type
-rwxr-xr-xbin/repos3
1 files changed, 1 insertions, 2 deletions
diff --git a/bin/repos b/bin/repos
index bf5c8c7..e45f4c8 100755
--- a/bin/repos
+++ b/bin/repos
@@ -133,8 +133,7 @@ shift $((OPTIND - 1))
is_repository() {
TYPE="$(vcs -C "$1" -t 2>/dev/null)"
if [ -n "$TYPE" ]; then
- printf '%s:%s\n' "$TYPE" "$1"
- return 0
+ echo "$1"
else
return 1
fi