From 481ce721fec773462bc85a1ebce997bdffb421ba Mon Sep 17 00:00:00 2001 From: lang Date: Sat, 17 Feb 2018 17:19:58 +0100 Subject: [PATCH] changes --- web_services/bitbucket/cloneAllBitbucketRepos.sh | 0 web_services/bitbucket/mirrorAllBitbucketRepos.sh | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) mode change 100644 => 100755 web_services/bitbucket/cloneAllBitbucketRepos.sh mode change 100644 => 100755 web_services/bitbucket/mirrorAllBitbucketRepos.sh diff --git a/web_services/bitbucket/cloneAllBitbucketRepos.sh b/web_services/bitbucket/cloneAllBitbucketRepos.sh old mode 100644 new mode 100755 diff --git a/web_services/bitbucket/mirrorAllBitbucketRepos.sh b/web_services/bitbucket/mirrorAllBitbucketRepos.sh old mode 100644 new mode 100755 index 5745932..d50181e --- a/web_services/bitbucket/mirrorAllBitbucketRepos.sh +++ b/web_services/bitbucket/mirrorAllBitbucketRepos.sh @@ -5,9 +5,9 @@ #modified by DL #17.02.2018 -curl -u ${1} https://api.bitbucket.org/1.0/users/${2} > repoinfo +curl -u ${1} https://api.bitbucket.org/1.0/users/${2} > ${2}.bitbucket.repoinfo -for repo_name in `cat repoinfo | sed -r 's/("name": )/\n\1/g' | sed -r 's/"name": "(.*)"/\1/' | sed -e 's/{//' | cut -f1 -d\" | tr '\n' ' '` +for repo_name in `cat ${2}.bitbucket.repoinfo | sed -r 's/("name": )/\n\1/g' | sed -r 's/"name": "(.*)"/\1/' | sed -e 's/{//' | cut -f1 -d\" | tr '\n' ' '` do echo "Cloning " $repo_name git clone --mirror ssh://git@bitbucket.org/${2}/$repo_name