API_SECRET=$(dotenv-tool -r get -f $ENV_FILE_NS"API_SECRET")
API_SECRET=$(dotenv-tool -r get -f $ENV_FILE_NS"API_SECRET")
if ! [["$API_SECRET"=~ [a-zA-Z0-9%+=./:=@_]{12,}]];then
if ! [["$API_SECRET"=~ [a-zA-Z0-9%+=./:=@_]{12,}]];then
while : ;do
while : ;do
CHOICE=$(whiptail --title "Ustal API SECRET" --menu "\nUstal bezpieczny API_SECRET, tajne główne hasło zabezpieczające dostęp do Twojego Nightscouta\n"13702\
CHOICE=$(whiptail --title "Ustal API SECRET" --menu "\nUstal bezpieczny API_SECRET, tajne główne hasło zabezpieczające dostęp do Twojego Nightscouta\n"13702\
API_SECRET=$(dotenv-tool -r get -f $ENV_FILE_NS"API_SECRET")
API_SECRET=$(dotenv-tool -r get -f $ENV_FILE_NS"API_SECRET")
if ! [["$API_SECRET"=~ [a-zA-Z0-9%+=./:=@_]{12,}]];then
if ! [["$API_SECRET"=~ [a-zA-Z0-9%+=./:=@_]{12,}]];then
while : ;do
while : ;do
CHOICE=$(whiptail --title "Ustal API SECRET" --menu "\nUstal bezpieczny API_SECRET, tajne główne hasło zabezpieczające dostęp do Twojego Nightscouta\n"13702\
CHOICE=$(whiptail --title "Ustal API SECRET" --menu "\nUstal bezpieczny API_SECRET, tajne główne hasło zabezpieczające dostęp do Twojego Nightscouta\n"13702\