This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#clone git repository from a file that list all repository will to be clone. | |
read -p "Please input your file which contains git repository will be clone:" file | |
echo "your file is ${file}" | |
if [ -f ${file} ];then | |
while read line | |
do | |
echo "clone from ${line}" | |
git clone ${line} |