help for script
-
@wsamael said in help for script:
@Clyde the first solution it's for convert my script to unix script ?
Both are. The first doesn't require the installation of another tool, as
sed
is party of most Linux base installations; the second may be more easy to remember as something like's/\r$//'
. ;) -
I try
sed -i 's/\r$//' root.sh
it's work but I see no difference beetwen my script, how did you see what 's wrong with my script ? (i would be understand ^^ )
-
@wsamael Your error message said:
'\r': command not found
Windows ends a line in a text file with a carriage return (
\r
) and a line feed (\n
), wheras unixoid systems only use\n
. Thus Retropie's command shellbash
rejected the\r
in your file as an unknown command. -
ok i understand thank you ;)
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.