From 4fe7bac236d7c1895271bf15bdb9dda1253ec230 Mon Sep 17 00:00:00 2001 From: Parabola git Date: Thu, 7 Jul 2016 22:37:56 +0000 Subject: git-shell-commands: use tab --- git-shell-commands/create-bare-repo | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'git-shell-commands/create-bare-repo') diff --git a/git-shell-commands/create-bare-repo b/git-shell-commands/create-bare-repo index b4d2d5f..817ac1b 100755 --- a/git-shell-commands/create-bare-repo +++ b/git-shell-commands/create-bare-repo @@ -6,13 +6,13 @@ set -e for repo in "$@"; do - repo="$(sed -r 's,^/*,,' <<<"$repo")" - _repo="$(sed -r -e '/(^|\/)\.\.($|\/)/d' -e "s,[^A-Za-z0-9\./_~-],,g" <<<"$repo")" - test "$repo" != "$_repo" && { printf 'Illegal name: %s\n' "${repo}"; continue; } - test -d "$repo".git && { printf 'Already exists: %s\n' "${repo}"; continue; } + repo="$(sed -r 's,^/*,,' <<<"$repo")" + _repo="$(sed -r -e '/(^|\/)\.\.($|\/)/d' -e "s,[^A-Za-z0-9\./_~-],,g" <<<"$repo")" + test "$repo" != "$_repo" && { printf 'Illegal name: %s\n' "${repo}"; continue; } + test -d "$repo".git && { printf 'Already exists: %s\n' "${repo}"; continue; } - mkdir -p -- "$repo".git - pushd "$repo".git >/dev/null - git init --bare - popd >/dev/null + mkdir -p -- "$repo".git + pushd "$repo".git >/dev/null + git init --bare + popd >/dev/null done -- cgit v1.2.3-54-g00ecf