I’m trying to add a pull chain ceiling fixture to an existing circuit and I’m stuck with figuring out the wiring.
In a spare bedroom I have a ceiling fixture that is controlled by a switch. I ran wiring to a closet where the pull chain fixture is going. Problem is that the switch controls the pull string fixture.
How can I fix this so that the pull string fixture is controlled on its own?

