Perhaps the file x-c1-fan.sh is saved in the wrong format: It must be saved in Linux format, not DOS format.