mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2025-02-17 09:37:49 +01:00
13 lines
158 B
Bash
Executable File
13 lines
158 B
Bash
Executable File
#!/bin/bash
|
|
|
|
repo=$1
|
|
if [ $repo != *.git ]; then
|
|
repo="${repo}.git"
|
|
fi
|
|
echo "Creating $repo"
|
|
(
|
|
cd "$HOME"
|
|
git init --bare "$repo"
|
|
chown -R git:git "$repo"
|
|
)
|