mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-18 18:18:06 -05:00
ITS#9931 test scripts: fix BSD vs GNU date syntax
This commit is contained in:
parent
6a16ee5286
commit
1112612b26
1 changed files with 9 additions and 0 deletions
|
|
@ -25,6 +25,15 @@ FAILCOUNT=0
|
|||
SKIPCOUNT=0
|
||||
SLEEPTIME=10
|
||||
|
||||
# check for BSD vs GNU date
|
||||
date -j >/dev/null 2>&1
|
||||
RC=$?
|
||||
if [ $RC -ne 0 ]; then
|
||||
DATEOPT="-d @"
|
||||
else
|
||||
DATEOPT="-r "
|
||||
fi
|
||||
|
||||
echo ">>>>> Executing all LDAP tests for the Load Balancer"
|
||||
|
||||
if [ -n "$NOEXIT" ]; then
|
||||
|
|
|
|||
Loading…
Reference in a new issue