by shawabawa3 · 13y ago · 0 comments
$ curl -s https://agent.sealion.com | sudo bash /dev/stdin -o etc
Downloading agent...
######################################################################## 100.0%
Created 'sealion' user successfully
Extracting files to /usr/local/sealion-agent...
Files extracted successfully
Installed SeaLion as a service
Starting agent...
./bin/sealion-node: 1: Syntax error: word unexpected (expecting ")")
Sealion service started successfully
Installation successful. Please continue on https://sealion.com
$ ./bin/sealion-node: 1: ELF: not foundThat or you're missing an executable or some command returns an error that's poorly handled (since we all know proper error handling is borderline impossible in shell scripts...).
That's why I don't get the point of bash scripts: if you want something truly portable you might as well use /bin/sh and if you're willing to compromise a bit of portability for more advanced features you might as well switch to perl or python (perl is probably as likely to be installed on any un*x machine as bash).
... | sudo \bash ...
?You really need to mention that in the title.