echo ">git init --bare ${dir}.git --initial-branch=main"
local user=${repo%@*}
- ssh root@${repo#*@} "cd ~git || exit; test -e ${dir}.git && echo "${dir}.git already exists on $repo" 1>&2 && exit 1; git init --bare ${dir}.git --initial-branch=main && chown -R $user.$user ${dir}.git" || return
+ ssh root@${repo#*@} "cd ~git || exit; test -e ${dir}.git && echo "${dir}.git already exists on $repo" 1>&2 && exit 1; git init --bare ${dir}.git --initial-branch=main && chown -R $user:$user ${dir}.git" || return
echo ">git init --initial-branch=main"
git init --initial-branch=main || return