test -z really needs its argument to be quoted. Simplified a status
test.
Signed-off-by: Martin Schwenke <martin@meltin.net>
}
RECLOCKFILE=`ctdb -Y getreclock`
- [ -z $RECLOCKFILE ] && {
+ [ -z "$RECLOCKFILE" ] && {
# we are not using a reclock file
echo -n > $RECLOCKCOUNT
exit 0
# try stat the reclock file as a background process
# so that we dont block in case the cluster filesystem is unavailable
(
- stat $RECLOCKFILE
- [ "$?" -eq 0 ] && {
+ stat $RECLOCKFILE && {
# we could stat the file, reset the counter
echo -n > $RECLOCKCOUNT
}