I created a .json file and saved it at ~/myfolder/myfile.json. Then I wrote a bash script. In which I first try to change the access rights, but I get the following error.
bash: $'\r': command not found
chmod: cannot access '/root/myfolder/myfile.json'$'\r': No such file or directory
Here is the script:
#!/bin/bash
chmod 600 ~/myfolder/myfile.json
I then came across the following post chmod: cannot access ‘\r’: No such file or directory
So instead of moving the file from windows to the container. I created the file with nano directly in the target folder. But I still get the same error
Does anyone have an idea what's the problem?