Removing bad echo in cloudup

This commit is contained in:
Alex Epstein 2017-08-09 00:45:08 -04:00
parent 4bad530534
commit 66cf7aea38
1 changed files with 0 additions and 1 deletions

View File

@ -183,7 +183,6 @@ getGithubRepoNames()
{
for pageNumber in {1..100}; do ## iterate through 100 possible pages
response=$(httpGet "https://api.github.com/users/$ghUsername/repos?sort=updated&per_page=100&page=$pageNumber") ## grab the original response
echo $response
if [[ $pageNumber == "1" && ( $(echo $response | grep -Eo "Not Found") == "Not Found" || $response == "[' ']") ]];then { echo -e -n "Failure!"; echo "Github username is invalid"; return 1;};fi
repoResponse=$(echo $response | grep -Eo '"name": "[ a-Z . \/ \\ 0-9 -- _ ]*' | sed s/'"name": "'/""/g ) ## extract the repo names from the response
forkResponse=($(echo $response | grep -Eo '"fork": [a-Z]*' | cut -d " " -f 2 | sed s/"'"//g )) ## extract the fork status of each repo