Not able to create Fastai environment in SageMaker

I am trying to create Life cycle configuration to create conda environment and following the steps from below link

When I create notebook instance , I am not able to create and from the log file it shows

/bin/bash: /tmp/OnStart_2021-07-20-07-46liaos7s7: /bin/bash^M: bad interpreter: No such file or directory

can anyone guide me , what is wrong in my approach