maybe icon indicating copy to clipboard operation
maybe copied to clipboard

bash script stuck when run with maybe

Open admirabilis opened this issue 8 years ago • 5 comments

I have tried runnning the Nodejs install script with maybe 0.4.0-1 on Ubuntu Yakkety, and with maybe, the script simply stops after "echo 'Installing the NodeSource Node.js 6.x repo...'".

$ curl -sL https://rpm.nodesource.com/setup_6.x | sudo maybe bash -x -
+ print_status 'Installing the NodeSource Node.js 6.x repo...'
++ echo 'Installing the NodeSource Node.js 6.x repo...'
^Cmaybe has not detected any file system operations from bash -x -.

I had to run it without maybe to get the script to run!

admirabilis avatar Dec 08 '16 14:12 admirabilis

Are you sure it actually stopped completely, rather than just slowed down? maybe/ptrace unfortunately has a very high overhead in some cases.

p-e-w avatar Dec 11 '16 05:12 p-e-w

Hello! There was no CPU or I/O activity at all for more than one minute. I don't believe this to be the case!

admirabilis avatar Dec 11 '16 14:12 admirabilis

Sounds like a bug then.

As a side note, I just want to re-iterate that as stated in the README maybe is not security software. When doing things like curl | sudo maybe bash, it's a good idea to ask yourself if you would be comfortable running the command without maybe in there.

p-e-w avatar Jan 21 '17 16:01 p-e-w

Thank you for your comment! I wanted to use maybe for installing Node so I could undo whatever they would have changed, if ever needed! I don't really like installing anything if not from the package manager!

admirabilis avatar Jan 22 '17 00:01 admirabilis

Hey @teresaejunior that script will use package manager only to install Node. So you can uninstall it anytime. For more checkout the script itself and try installing it on some test environment.

sanketplus avatar Jan 23 '17 06:01 sanketplus