mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-30 13:28:30 +01:00
d2bb8fbcf3
Signed-off-by: Jess Frazelle <acidburn@google.com>
15 lines
185 B
Bash
Executable File
15 lines
185 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
set -o pipefail
|
|
|
|
repo=$1
|
|
if [[ "$repo" != *.git ]]; then
|
|
repo="${repo}.git"
|
|
fi
|
|
echo "Creating $repo"
|
|
(
|
|
cd "$HOME"
|
|
git init --bare "$repo"
|
|
chown -R git:git "$repo"
|
|
)
|