Hey all i am writing my first bash script. and i am making it install all the repos i have on github.
warpInLocations=("[email protected]:acc/toolkit.git" "[email protected]:acc/sms.git" "[email protected]:acc/boogle.git" "[email protected]:acc/cairo.git")
so those are them so when i install them
echo "warping in toolkit, sms, boogle and cairo"
for repo in "${warpInLocations[@]}"
do
warpInDir=$(echo ${warpToLocation}${repo} | cut -d'.' -f1)
if [ -d "$warpToLocation"]; then
echo "somethings in the way.. $warpInDir all ready exists"
else
git clone $repo $warpInDir
fi
done
this line here i wanted it to give me a folder named toolkit or sms so after the / and before the . in the warp in locations but its selecting git@github instead i guess because its after the .
how can i get it to select the name in the repo??
/
and the following.
? – Uwe May 24 '13 at 14:54