4 ms·
Not sure I like the install method. I'm nervous of anything that asks me to pipe curl to shell.
by Lio 10y ago
Not sure I like the install method. I'm nervous of anything that asks me to pipe curl to shell.
- arnarbi 10y agoAre you less nervous running a binary installer?
- beachstartup 10y agoi'm not. all of it makes me nervous. even package managers with supposedly cryptographically secure verification make me nervous. but, you gotta do what you gotta do to actually do stuff. i sure as hell ain't going back to the days of compiling everything from source.
- ghshephard 10y agoOkay - I'm curious. What is wrong with: ./configure make make install I do that a lot, and 90+% of the time, it's that simple.
- beachstartup 10y agouh yeah, it's the other 10% that's the problem. not to mention the tracking of installed files and library dependencies that slowly develop into an accumulated spiderweb shitstorm of runtime conflicts. have you tried maintaining multiple versions of a shared object libraries by hand? do you remember the 'make install' wrappers that never worked right? pepperidge farm remembers.
- seanwilson 10y ago> i'm not. all of it makes me nervous. even package managers with supposedly cryptographically secure verification make me nervous. Android and Chrome for example are really ahead of this in my opinion. Apps are sandboxed and you know uninstall clears up traces of them. Obviously it's not perfect but it's miles ahead of installation scripts and binary installers which can do anything they want with your system and might be hard to get rid of.
- yoz-y 10y agoThat is what Mac App Store is for. However, all of these sandboxed environments come with their own sets of problems and make making especially these kind of tools quite difficult if not impossible.
- pjmlp 10y ago> Apps are sandboxed and you know uninstall clears up traces of them. Not in all versions of Android, if they write stuff on the SD card.
- seanwilson 10y agoThey might be able to write some files that sit around but not code that runs on startup and spies on you for example.
- slrz 10y agoSo how would you go about packaging this m-cli tool into a sandboxed app?
- auvi 10y agothe best way to get rid off the discomfort is to first check the shell script: curl -fsSL https://raw.githubusercontent.com/rgcr/m-cli/master/install.sh https://raw.githubusercontent.com/rgcr/m-cli/master/install.... | pbcopy Then you can paste it in a text editor and if it is not too long you can verify the script. And as this one is on github you can take a look directly.
- theseoafs 10y agoJust pipe the script to a file so you can read it without having to copy-paste. :) curl -fsSL https://raw.githubusercontent.com/rgcr/m-cli/master/install... https://raw.githubusercontent.com/rgcr/m-cli/master/install..... > install.sh
- jlgaddis 10y agoOr use curl's built-in options: curl -O ... or curl -o install.sh ...
- Alphasite_ 10y agoOr pbpaste | sh
- javajosh 10y agoYou can always pull and build - but of course that's risky too, roughly in proportion to the size of the working copy.
- curun1r 10y agoAlso not to like about the install method: The install.sh stores INSTALL_DIR in a variable but does not allow that variable to be overridden by the environment. So you're forced to install into /usr/local despite then being asked to add /usr/local/m-cli to your path. It would be better to allow /usr/local to be overridden so that installation doesn't require sudo. It's just as easy to add ~/.m-cli to your path.
- JadeNB 10y ago> The install.sh stores INSTALL_DIR in a variable but does not allow that variable to be overridden by the environment. Really? The documentation explicitly says that it does: INSTALL_DIR=$HOME/.m-cli sh <(curl -fsSL https://raw.githubusercontent.com/rgcr/m-cli/master/install.sh)
- barefootcoder 10y agoThe thing is, in this case you can easily inspect the shell script that they're running with that curl command.