The home run by Luke Scott in the fifth inning seemed to wake everyone up. If anything, it put the Rays back in the game Saturday against the visiting Astros.

From there, the Rays used their legs and a little bit of cunning, because the biggest hit in their 4-3 victory traveled less than 90 feet.

It was a bunt. Yes, a bunt.

It came in the fifth inning from Desmond Jennings and scored Yunel Escobar, who doubled with two outs and stole third base.

“Brilliant play by Desmond,” Rays manager Joe Maddon said.

That made it a 3-3 game. It became 4-3 an inning later when Wil Myers singled with two out, stole second and scored on a hit by Scott.

“They’re little things that mount up in the course of the game,” Scott said of the stolen bases and the bunt by Jennings.

The Rays evened this three-game series with the Astros at one with their 13th victory in 15 games. The Rays are 8-1 on this 10-game homestand that concludes this afternoon and ushers in the All-Star break.

Roberto Hernandez (5-10) pitched himself out of a 3-0 first-inning hole with his fourth straight quality start to earn his fifth win of the season — his first since June 11 when he beat the Red Sox.

He did so with help from the bullpen. Jake McGee, Joel Peralta and Fernando Rodney combined to retire the final nine Astros. Rodney converted his 13th straight save opportunity to record his 22nd save, sending the Tropicana Field crowd of 20,409 dancing into the KC & the Sunshine Band concert that followed on Disco Night.

And Hernandez received a little support from his offense, though it took a while for the Rays bats to perk up against Astros lefty Dallas Keuchel.

The Rays had two hits through four innings. Both were singles.

Myers singled to start the fifth inning and Scott followed with his eighth home run of the season. That trimmed the Astros’ lead to 3-2. It also extended Scott’s season-long hitting streak to nine games.