hyphen error

This commit is contained in:
2025-11-04 13:37:53 +01:00
parent 5c101b4fc4
commit af41ba9acb

View File

@@ -61,10 +61,10 @@ while [[ $# -gt 0 ]]; do
exit 1
fi
if [[ ! "$apitoken" =~ ^[A-Za-z0-9_-]{20,120}$ ]]; then
printf "\nERROR: Invalid API token format.\n"
printf "Expected 20-120 characters (AZ, az, 09, - or _).\n\n"
exit 1
if [[ ! "$apitoken" =~ ^[A-Za-z0-9_-]{20,120}$ ]]; then
printf "\nERROR: Invalid API token format.\n"
printf "Expected 20-120 characters (A-Z, a-z, 0-9, - or _).\n\n"
exit 1
fi
shift