Skip to content
Snippets Groups Projects
Commit fa094f8a authored by Orhan-Timo Altan's avatar Orhan-Timo Altan
Browse files

Git-Clone skript

parent 65a4c31a
No related tags found
No related merge requests found
#!/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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment