Commit 74fa9667 authored by Aral Balkan's avatar Aral Balkan

Now fetching the person’s GitLab account when they want to use their own forks.

parent 96ba1fcd
......@@ -29,7 +29,7 @@ set -e
optionInstallEverything=false
optionFork=false
accountName=better
optionAccountName=better
humanNameOfThingToInstall=null
ask() {
......@@ -178,7 +178,11 @@ To continue:
fi
if [ $optionFork = true ]; then
echo "• Fork the Better repositories into your own GitLab account\n on source.ind.ie using the private key ${privateToken}"
# Get the account name
optionAccountName=$(accountName)
echo "• Use (and create, if necessary) your own forks on your GitLab account (${optionAccountName})\n on source.ind.ie using the private key ${privateToken}"
else
echo "• Without forking (read-only unless you have commit access)"
fi
......@@ -259,7 +263,7 @@ install(){
fi
echo "\n • Cloning ${humanName}…"
git clone --quiet git@source.ind.ie:${accountName}/${componentToInstall}.git
git clone --quiet git@source.ind.ie:${optionAccountName}/${componentToInstall}.git
echo "\n • Running installation script for ${humanName}…"
cd $componentToInstall
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment