Hi Tim,

> mit@Aura:/media/mit/Railroad Tycoon II$ sudo sh setup.sh
> [sudo] password for mit:
> setup.sh: 9: function: not found
> x86_64
> ...
> #!/bin/sh
> ...
> function DetectARCH {

That's not valid sh syntax for defining a function.
It will work in bash.  Try replacing sh with bash in your command.

-- 
Cheers, Ralph.

-- 
  Next meeting: BEC, Bournemouth, Tuesday, 2020-01-07 20:00
  Check to whom you are replying
  Meetings, mailing list, IRC, ...  http://dorset.lug.org.uk/
  New thread, don't hijack:  mailto:dorset@mailman.lug.org.uk

Reply via email to