From fa094f8acbed74d98b3e60307a75720aa4910895 Mon Sep 17 00:00:00 2001 From: "timo.altan" <timo.altan@th-koeln.de> Date: Tue, 1 Jun 2021 16:26:27 +0200 Subject: [PATCH] Git-Clone skript --- Git-Clone.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Git-Clone.sh diff --git a/Git-Clone.sh b/Git-Clone.sh new file mode 100644 index 0000000..a22b6d7 --- /dev/null +++ b/Git-Clone.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +read -p $'\e[32mPlease insert the Git-Repository address:\e[0m ' git_link + +read -p $'\e[32mIs the address correct?[y/n] \e[0m' correct + +if [ "$correct" == "y" ] + then + git clone $git_link + elif [ "$correct" == "n" ] + then + read -p $'\e[36mPlease insert correct Git-Repository address: \e[0m' git_link + git clone $git_link + else + echo $'\e[31mWrong input! Please type y (yes) or n (no) \e[0m' +fi + +read -p "Press enter to continue " \ No newline at end of file -- GitLab