mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-25 00:59:45 -05:00
ITS#6979 avoid bash-ism
This commit is contained in:
parent
8a5d0952ad
commit
976b4edc4c
1 changed files with 3 additions and 3 deletions
|
|
@ -106,7 +106,7 @@ rm -f $RCOUT
|
|||
(
|
||||
$LDAPSEARCH -D cn=config -H $URI1 -y $CONFIGPWF -bcn=config -E \!sync=rp >/dev/null 2>&1
|
||||
RC=$?
|
||||
touch $RCOUT
|
||||
echo $RC > $RCOUT
|
||||
exit $RC
|
||||
) &
|
||||
|
||||
|
|
@ -137,10 +137,10 @@ done
|
|||
|
||||
if test -f "$RCOUT" ; then
|
||||
wait $SEARCHPID
|
||||
SEARCHRC=$?
|
||||
SEARCHRC=`cat $RCOUT`
|
||||
echo "Checking return code of backgrounded RefreshAndPersist search ..."
|
||||
if test $SEARCHRC != 52 ; then
|
||||
echo "Error: Backgrounded ldapsearch did return the wrong error code: $SEARCHRC"
|
||||
echo "Error: Backgrounded ldapsearch returned the wrong error code: $SEARCHRC"
|
||||
RC=1
|
||||
else
|
||||
echo "Exit code correct."
|
||||
|
|
|
|||
Loading…
Reference in a new issue