mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-12-02 14:28:08 +01:00
2b0af26ae9
Signed-off-by: Jess Frazelle <jess@mesosphere.com>
13 lines
156 B
Bash
Executable File
13 lines
156 B
Bash
Executable File
#!/bin/sh
|
|
|
|
repo=$1
|
|
if [ $repo != *.git ]; then
|
|
repo="${repo}.git"
|
|
fi
|
|
echo "Creating $repo"
|
|
(
|
|
cd "$HOME"
|
|
git init --bare "$repo"
|
|
chown -R git:git "$repo"
|
|
)
|