Provide possibility to enter Access Token on demand

This commit is contained in:
2021-02-17 10:19:40 +01:00
parent 505065bb3e
commit 5539c6b78e

View File

@@ -540,8 +540,10 @@ toolScript() {
# End step if no admin access token is configured
adminTokenCheck() {
if [ -z $MATRIX_ACCESS ] ; then
return 1
if [ -z "$MATRIX_ACCESS" ] ; then
[ $QUIET -eq 0 ] && read -s -p "Please enter admin access tocken: " MATRIX_ACCESS
# return -1 if it is still empty
[ -z "$MATRIX_ACCESS" ] && return -1
fi
return 0
}