diff options
author | Aaron LI <aly@aaronly.me> | 2018-04-18 17:13:56 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2018-04-18 17:13:56 +0800 |
commit | 453ece11323f34aca8288c288aced4cc2142b428 (patch) | |
tree | ceda353961470ff8c8b15e2425ad22a98399aed4 /roles/git/files/git-shell-commands/list | |
parent | 14784bbc80a47dcbec86bd501b7f3893b2b15dbf (diff) | |
download | ansible-dfly-vps-453ece11323f34aca8288c288aced4cc2142b428.tar.bz2 |
git: Update git shell commands; add git-cmds tag
Diffstat (limited to 'roles/git/files/git-shell-commands/list')
-rw-r--r-- | roles/git/files/git-shell-commands/list | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/roles/git/files/git-shell-commands/list b/roles/git/files/git-shell-commands/list index 2977541..47e64e1 100644 --- a/roles/git/files/git-shell-commands/list +++ b/roles/git/files/git-shell-commands/list @@ -8,10 +8,10 @@ . ${HOME}/vars.conf -for repo in $(ls -d *.git); do +for repo in $(ls -d ${HOME}/*.git); do is_bare_repo=$(git --git-dir="${repo}" rev-parse --is-bare-repository) if [ "${is_bare_repo}" = "true" ]; then - echo "* ${repo}" + echo "* $(basename ${repo})" if [ -e "${PUBLIC}/${repo}" ]; then echo " [public]" fi |