add in debug param
This commit is contained in:
parent
72625870bf
commit
f2b2c021f8
@ -59,6 +59,7 @@ if [[ $(which $2 | grep "no $2") ]] ; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
DEBUG=
|
||||
REVIEW=
|
||||
NOISY=
|
||||
GITEAHOST=${remote_GITEAHOST}
|
||||
@ -75,6 +76,8 @@ for param in $3 $4 $5 $6; do
|
||||
ACCESSTOKEN=${local_GITEAACCESSTOKEN}
|
||||
EXTRAPARAMS=$EXTRAPARAMS" "$param
|
||||
;;
|
||||
debug )
|
||||
DEBUG=true ;;
|
||||
* )
|
||||
EXTRAPARAMS=$EXTRAPARAMS" "$param ;;
|
||||
esac
|
||||
@ -87,7 +90,7 @@ if [ $PROCESSORG ] ; then
|
||||
# cycle through the repos in the specified organisation
|
||||
# get a list of repositories in the source organisation
|
||||
for page in {1..10} ; do
|
||||
if [ $DEBUG ] ; then echo "getting page $page of repos from $GITHOST $PROCESSORG" ; fi
|
||||
if [ $DEBUG ] ; then echo "getting page $page of repos from $GITEAHOST $PROCESSORG" ; fi
|
||||
RESPONSE=$(curl -s -X 'GET' \
|
||||
"$GITEAHOST/api/v1/orgs/$PROCESSORG/repos?page=$page" \
|
||||
-H 'accept: application/json' \
|
||||
|
Loading…
Reference in New Issue
Block a user