I am very new to Linux and this is obviously an ignorance problem. Why can't I run the script?
phil@SodickA:~/Downloads$ . ./ecat.sh
requires sudo to run eg: sudo ./ecat.sh
removing ethercat repository file\n
rm: remove write-protected regular file '/etc/apt/sources.list.d/ighvh.sources'? y
rm: cannot remove '/etc/apt/sources.list.d/ighvh.sources': Permission denied
Install ethercat repository
dd: failed to open '/etc/apt/trusted.gpg.d/science_EtherLab.gpg': Permission denied
--2024-12-20 15:55:08--
build.opensuse.org/projects/science:Ethe...ys/download?kind=gpg
Resolving build.opensuse.org (build.opensuse.org)... 195.135.223.221, 2a07:de40:b250:131:10:151:131:20
Connecting to build.opensuse.org (build.opensuse.org)|195.135.223.221|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/octet-stream]
Saving to: ‘STDOUT’
- [ <=> ] 1.08K --.-KB/s in 0s
2024-12-20 15:55:09 (47.0 MB/s) - written to stdout [1109]
gpg: [stdout]: write error: Broken pipe
gpg: filter_flush failed on close: Broken pipe
tee: /etc/apt/sources.list.d/ighvh.sources: Permission denied
phil@SodickA:~/Downloads$ sudo .ecat.sh
sudo: .ecat.sh: command not found