mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-23 19:32:30 +01:00
13 lines
156 B
Plaintext
13 lines
156 B
Plaintext
|
#!/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"
|
||
|
)
|