Skip to content

Commit 44decfa

Browse files
committed
Replace PATH_TO_VENDOR_REPO -> PATH_TO_VENDORS_REPO
1 parent 2349ec8 commit 44decfa

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

bash/clone_vendors.sh

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# clone vendors repositories to ./core/vendors
33
REPO_NAME="terminalForCoder__WSD"
44
PATH_TO_CORE="${HOME}/${REPO_NAME}/bash/core"
5-
PATH_TO_VENDOR_REPO="${HOME}/${REPO_NAME}/vendors"
5+
PATH_TO_VENDORS_REPO="${HOME}/${REPO_NAME}/vendors"
66

77
# array with repositories
88
repositories=( "https://github.com/larscmagnusson/CSS3MultiColumn.git" "https://github.com/tc39/test262.git" "https://github.com/postcss/postcss" "https://github.com/webpack/webpack" "https://github.com/var-bin/spriteFactory.git" "https://github.com/var-bin/backbone-training.git" "https://github.com/var-bin/flex-grid-framework.git" "https://github.com/var-bin/BrandButtons.git" "https://github.com/var-bin/less-easings.git" )
@@ -20,11 +20,11 @@ cloneVendors() {
2020
exit 0
2121
fi
2222

23-
# if "${PATH_TO_VENDOR_REPO}" is not exist
24-
# create "${PATH_TO_VENDOR_REPO}" directory
25-
if [[ ! -e "${PATH_TO_VENDOR_REPO}" ]]
23+
# if "${PATH_TO_VENDORS_REPO}" is not exist
24+
# create "${PATH_TO_VENDORS_REPO}" directory
25+
if [[ ! -e "${PATH_TO_VENDORS_REPO}" ]]
2626
then
27-
mkdir "${PATH_TO_VENDOR_REPO}"
27+
mkdir "${PATH_TO_VENDORS_REPO}"
2828
fi
2929

3030
while [ "$i" -lt "$repositories_count" ]
@@ -33,28 +33,28 @@ cloneVendors() {
3333
vendor=$(echo ${repositories[$i]} | sed "s/https\:\/\/github\.com\/*//g" | sed "s/\/.*//g")
3434
vendor_repo_name=$(echo ${repositories[$i]} | sed "s/https\:\/\/github\.com\/.*\///g" | sed "s/\.git//g")
3535

36-
# if "${PATH_TO_VENDOR_REPO}/${vendor}" is directory
36+
# if "${PATH_TO_VENDORS_REPO}/${vendor}" is directory
3737
# go to directory and do git clone stuff
38-
if [[ -d "${PATH_TO_VENDOR_REPO}/${vendor}" ]]
38+
if [[ -d "${PATH_TO_VENDORS_REPO}/${vendor}" ]]
3939
then
40-
echo "Directory ${PATH_TO_VENDOR_REPO}/${vendor} is exist"
40+
echo "Directory ${PATH_TO_VENDORS_REPO}/${vendor} is exist"
4141

42-
if [[ ! -e "${PATH_TO_VENDOR_REPO}/${vendor}/${vendor_repo_name}" ]]
42+
if [[ ! -e "${PATH_TO_VENDORS_REPO}/${vendor}/${vendor_repo_name}" ]]
4343
then
4444
echo "Repository: ${repositories[$i]} is clonning"
45-
cd "${PATH_TO_VENDOR_REPO}/${vendor}" && git clone ${repositories[$i]}
45+
cd "${PATH_TO_VENDORS_REPO}/${vendor}" && git clone ${repositories[$i]}
4646
else
47-
echo "Repository ${PATH_TO_VENDOR_REPO}/${vendor}/${vendor_repo_name} is exist"
47+
echo "Repository ${PATH_TO_VENDORS_REPO}/${vendor}/${vendor_repo_name} is exist"
4848
echo ""
4949
fi
5050
else
51-
# create directory "${PATH_TO_VENDOR_REPO}/${vendor}"
51+
# create directory "${PATH_TO_VENDORS_REPO}/${vendor}"
5252
# go to directory and do git clone stuff
53-
echo "Create directory: ${PATH_TO_VENDOR_REPO}/${vendor}"
54-
mkdir "${PATH_TO_VENDOR_REPO}/${vendor}"
53+
echo "Create directory: ${PATH_TO_VENDORS_REPO}/${vendor}"
54+
mkdir "${PATH_TO_VENDORS_REPO}/${vendor}"
5555

5656
echo "Repository: ${repositories[$i]} is clonning"
57-
cd "${PATH_TO_VENDOR_REPO}/${vendor}" && git clone ${repositories[$i]}
57+
cd "${PATH_TO_VENDORS_REPO}/${vendor}" && git clone ${repositories[$i]}
5858
fi
5959
i=$((i + 1)) # i++
6060
done

0 commit comments

Comments
 (0)