mirror of
https://github.com/aliasvault/aliasvault.git
synced 2026-02-23 01:46:18 -05:00
Fix regex (#374)
This commit is contained in:
4
.github/workflows/docker-compose-build.yml
vendored
4
.github/workflows/docker-compose-build.yml
vendored
@@ -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
|
||||
|
||||
2
.github/workflows/docker-compose-pull.yml
vendored
2
.github/workflows/docker-compose-pull.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user