Donald Trump this week convinced Carrier to keep 1,000 jobs at its Indianapolis plant instead of moving them to Mexico — but in reality, the air-conditioner maker took the president-elect "hostage" and emerged the winner, Sen. Bernie Sanders, I-Vt., said.

"About 1,000 Carrier workers and their families should be rejoicing. But the rest of our nation's workers should be very nervous," Sanders wrote Thursday in the Washington Post.

"Let's be clear: It is not good enough to save some of these jobs. Trump made a promise that he would save all of these jobs, and we cannot rest until an ironclad contract is signed to ensure that all of these workers are able to continue working in Indiana without having their pay or benefits slashed.

"In exchange for allowing [Carrier's parent company] United Technologies to continue to offshore more than 1,000 jobs, Trump will reportedly give the company tax and regulatory favors that the corporation has sought."

Sanders said months ago, Trump insisted on a "damn tax" for companies like Carrier that left and sold their foreign-made goods back to the United States.

"Instead of a damn tax, the company will be rewarded with a damn tax cut. Wow! How's that for standing up to corporate greed?" Sanders wrote.

"In essence, United Technologies took Trump hostage and won . . . Now will other companies take advantage?"