Fix regex (#374)

This commit is contained in:
Leendert de Borst
2024-11-18 11:10:23 +01:00
parent c8df588401
commit dd331f75c9
2 changed files with 3 additions and 3 deletions

View File

@@ -91,8 +91,8 @@ jobs:
- name: Test build.sh --reset-password output
run: |
output=$(./build.sh --reset-password)
if ! echo "$output" | grep -E '^New admin password: [A-Za-z0-9+/=]{8,}$'; then
echo "Password reset output format is incorrect. Expected format: 'New admin password: <at least 8 base64 chars>'"
if ! echo "$output" | grep -E '.*New admin password: [A-Za-z0-9]{8,}.*'; then
echo "Password reset output format is incorrect. Expected format: 'New admin password: <at least 8 chars>'"
echo "Actual output: $output"
exit 1
else

View File

@@ -91,7 +91,7 @@ jobs:
- name: Test install.sh --reset-password output
run: |
output=$(./install.sh --reset-password)
if ! echo "$output" | grep -E '^New admin password: [A-Za-z0-9+/=]{8,}$'; then
if ! echo "$output" | grep -E '.*New admin password: [A-Za-z0-9]{8,}.*'; then
echo "Password reset output format is incorrect. Expected format: 'New admin password: <at least 8 base64 chars>'"
echo "Actual output: $output"
exit 1