diff --git a/Git-Clone.sh b/Git-Clone.sh new file mode 100644 index 0000000000000000000000000000000000000000..a22b6d72db9345d47595f6f8a56cde2ec02b0b3c --- /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