President Donald Trump is eyeing a path to avoid another government shutdown where he would reluctantly accept the congressional border-security deal and attempt to tap other funds for his wall.

Trump is likely to grudgingly sign the legislation and then immediately use his executive authority to fund additional border measures, said a person who talked to the president Tuesday and asked not to be identified to discuss private conversations.

"I don't want to see a shutdown. A shutdown would be a terrible thing," Trump told reporters Wednesday in the Oval Office. But he wouldn't commit to signing the legislation, saying he would wait until the White House reviews the final version.