diff --git a/seqs/matrix.sh b/seqs/matrix.sh index 6bf16d6..ebf9ded 100755 --- a/seqs/matrix.sh +++ b/seqs/matrix.sh @@ -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 }