Archi Forum

Archi => Archi Development => Topic started by: levait on March 11, 2015, 11:04:11 AM

Title: [FIX] Archi_Ubuntu.sh
Post by: levait on March 11, 2015, 11:04:11 AM
Hi,

the Archi_Ubuntu.sh file in the current versions of Archi contains syntax errors, therefore, it is useless. I could not find this file under any VCS, so I uploaded the fixed one here. Please, merge this into the upstream version.

Tamás Lévai
Title: Re: [FIX] Archi_Ubuntu.sh
Post by: Phil Beauvoir on March 11, 2015, 11:05:37 AM
Define "useless"

Define "syntax errors"

Title: Re: [FIX] Archi_Ubuntu.sh
Post by: levait on March 11, 2015, 12:16:42 PM
Quote from: Phil Beauvoir on March 11, 2015, 11:05:37 AM
Define "useless"

Define "syntax errors"

lt@lapat:/tmp/Archi$ ./Archi-Ubuntu.sh
bash: ./Archi-Ubuntu.sh: /bin/bash^M: bad interpreter: No such file or directory


Of course, it did not started Archi, however, it was its purpose, therefore, it is useless/unusable.

System info: Ubuntu 14.04.2 with linux: 3.13.0-46-generic x86_64, and bash: version 4.3.11(1)-release

Title: Re: [FIX] Archi_Ubuntu.sh
Post by: Phil Beauvoir on March 11, 2015, 12:20:51 PM
OK, I will replace this for the next version of Archi.

I'm sure it used to work, it was created by a Linux expert (not me).
Title: Re: [FIX] Archi_Ubuntu.sh
Post by: levait on March 11, 2015, 12:24:11 PM
Ohh, I forgot to mention that the problem was the DOS-style line ending.
Title: Re: [FIX] Archi_Ubuntu.sh
Post by: Phil Beauvoir on March 11, 2015, 12:26:17 PM
Yes, I see that.

I changed the line endings to Unix. I think because I build on a Win machine, git changes the line endings. I will look at it.