Skip to content

Commit da345a4

Browse files
style(starte2e): Fix spelling, indentation and shellcheck nits
1 parent ec9e9b8 commit da345a4

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.config/starte2e.sh

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,14 @@ export PATH="${PATH}:/usr/bin"
1010
touch tests/environment/zitadel/service-user.json
1111
chmod a+rw tests/environment/zitadel/service-user.json
1212

13-
# We only take down ldap if the cert are too old and need regeneration
13+
# We only take down ldap if the certs are too old and need regeneration
1414
ldap_down=""
1515
file_creation=$(date -r ./tests/environment/certs/ca.crt +%s || echo 0)
16-
if [ $(( $(date +%s) - $file_creation )) -gt 2160000 ]; # 25 days old?
17-
then
18-
ldap_down="-v ldap"
16+
if [ $(($(date +%s) - file_creation)) -gt $((25 * 24 * 60 * 60)) ]; then
17+
ldap_down="-v ldap"
1918
fi
2019

2120
# Shut down any still running test-setup first
22-
docker compose --project-directory ./tests/environment down -v test-setup $ldap_down || true
21+
docker compose --project-directory ./tests/environment down -v test-setup "$ldap_down" || true
2322
docker compose --project-directory ./tests/environment up --wait \
2423
|| (docker compose --project-directory ./tests/environment logs test-setup; exit 1)

0 commit comments

Comments
 (0)