option for nooutput
This commit is contained in:
parent
2506441cfd
commit
e68b051f83
@ -68,6 +68,7 @@ SOURCEACCESSTOKEN=${remote_GITEAACCESSTOKEN}
|
|||||||
SOURCEORG="smeserver"
|
SOURCEORG="smeserver"
|
||||||
TARGETORG=${remote_USER}
|
TARGETORG=${remote_USER}
|
||||||
DELETEIT=
|
DELETEIT=
|
||||||
|
NOOUTPUT=
|
||||||
for param in $2 $3 $4 $5; do
|
for param in $2 $3 $4 $5; do
|
||||||
if [ $param ] ; then
|
if [ $param ] ; then
|
||||||
case $param in
|
case $param in
|
||||||
@ -79,6 +80,8 @@ for param in $2 $3 $4 $5; do
|
|||||||
DELETEIT=true ;;
|
DELETEIT=true ;;
|
||||||
debug )
|
debug )
|
||||||
DEBUG=true ;;
|
DEBUG=true ;;
|
||||||
|
nooutput )
|
||||||
|
NOOUTPUT=true
|
||||||
* )
|
* )
|
||||||
SOURCEORGORG=$param ;;
|
SOURCEORGORG=$param ;;
|
||||||
esac
|
esac
|
||||||
@ -284,6 +287,8 @@ git push origin &> /dev/null
|
|||||||
|
|
||||||
#Convert repository to a Regular Repository (rather than fork)
|
#Convert repository to a Regular Repository (rather than fork)
|
||||||
#Can't do via API call ATM, so leave a message
|
#Can't do via API call ATM, so leave a message
|
||||||
|
if [[ -z $NOOUTPUT ]] ; then
|
||||||
echo "$SOURCEORG/$SOURCEPKG has been renamed as $TARGETORG/$TARGETPKG"
|
echo "$SOURCEORG/$SOURCEPKG has been renamed as $TARGETORG/$TARGETPKG"
|
||||||
echo "It is still a forked repository, so you need to 'Convert to Regular Repository' in GITEA and then 'Transfer' it to it's final Organisation"
|
echo "It is still a forked repository, so you need to 'Convert to Regular Repository' in GITEA and then 'Transfer' it to it's final Organisation"
|
||||||
|
fi
|
||||||
exit 0
|
exit 0
|
||||||
|
Loading…
Reference in New Issue
Block a user