Commit db45b868 authored by Boris Baldassari's avatar Boris Baldassari
Browse files

Fix get_repo script to not ask for password.

parent 4855aae7
......@@ -18,12 +18,15 @@ DIR_PROJECTS="/data/projects"
# Get the csv file from the API.
echo "# Downloading repositories.csv"
wget --quiet https://www.eclipse.org/projects/export/repositories.csv.php -O repositories.csv
wget --quiet https://www.eclipse.org/projects/export/repositories.csv.php -O /tmp/repositories.csv
OLD_PWD=$(pwd)
# Make sure we don't get stuck by a password prompt.
export GIT_TERMINAL_PROMPT=0
# Loop through all lines BUT the first one.
for i in `cat repositories.csv | grep -v '^#'`; do
for i in `cat /tmp/repositories.csv | grep -v '^#'`; do
p=$(echo $i | cut -d, -f1);
r=$(echo $i | cut -d, -f2);
n=${r##*/}
......@@ -48,4 +51,4 @@ for i in `cat repositories.csv | grep -v '^#'`; do
done
cd $OLD_PWD
rm repositories.csv
rm /tmp/repositories.csv
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