Confused about wiring outside light fixture with multiple switched wires
I replaced the light switch itself and the only thing in the box were the 2 wires connected to the old switch and the ground wire


Since there is only 2 wires in the switch box, that means the switch is at the end of the line. So to fix this light, you just need to wire it like this diagram:



To figure out which cable coming in to the light box is from the breaker and which is from the switch, hook the light directly to one cable and ignore the other cable. Turn the breaker on. If the light comes on, then that cable is coming from the breaker.