clone factorized

This commit is contained in:
dangerboot
2026-03-08 09:25:42 +01:00
parent 0483507d46
commit 9f0d6a41f3
+4 -2
View File
@@ -1,14 +1,16 @@
#!/bin/bash #!/bin/bash
clone () clone ()
{ {
URL=git@github.com:
PROFIL_NAME=nidionis
DEFAULT_ADDR="" DEFAULT_ADDR=""
if [ $# -ne "1" ]; then if [ $# -ne "1" ]; then
PROFIL_NAME="$1"; PROFIL_NAME="$1";
PROJECT_NAME="$2"; PROJECT_NAME="$2";
git clone --recurse-submodules ssh://git@6.tcp.eu.ngrok.io:11272/$PROFIL_NAME/$PROJECT_NAME.git; git clone --recurse-submodules $URL/$PROFIL_NAME/$PROJECT_NAME.git;
else else
PROJECT_NAME="$1"; PROJECT_NAME="$1";
git clone --recurse-submodules ssh://git@6.tcp.eu.ngrok.io:11272/painpain/$PROJECT_NAME.git; git clone --recurse-submodules $URL/$PROFIL_NAME/$PROJECT_NAME.git;
fi fi
} }
clone "$@" clone "$@"