From a2118e0e012a463f729855b4d35ce7cf35da78ad Mon Sep 17 00:00:00 2001 From: Yannick Date: Sun, 18 Jun 2023 21:58:37 +0200 Subject: [PATCH] added in Print function the port --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 49e2b61..57c1377 100644 --- a/main.py +++ b/main.py @@ -41,7 +41,7 @@ commands = [ "touch README.txt", "git add .", 'git commit -am "INIT"', - f"git remote add origin ssh://{username}@{hostname}/share/Public/git/{project_name}.git" + f"git remote add origin ssh://{username}@{hostname}:{port}/share/Public/git/{project_name}.git" ] # SSH-Verbindung herstellen und Befehle ausführen @@ -66,6 +66,6 @@ else: print("Hier sind Hilfreiche Befehle:") print(f"\ncd share/Public/git/{project_name}") print("\ngit push origin master") - print(f'\ngit clone "ssh://yannick@192.168.2.106/share/Public/git/{project_name}.git"') + print(f'\ngit clone "ssh://yannick@192.168.2.106:{port}/share/Public/git/{project_name}.git"') except subprocess.CalledProcessError as e: print(f"Leider ist da was Fehlgeschlagen: {e}")