Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

m-cli not installing to specified directory #39

Closed
colby-swandale opened this issue Jul 16, 2016 · 3 comments
Closed

m-cli not installing to specified directory #39

colby-swandale opened this issue Jul 16, 2016 · 3 comments

Comments

@colby-swandale
Copy link

Hi, thanks for the hard work into this project!

I am trying to install the project into my home folder, the documentation says i can specify a path with INSTALL_DIR but that function does not appear to be working. The following is an example of me trying to install m-cli into ~/.m-cli but is instead being installed into /usr/local/m-cli. I am not sure if the documentation is wrong or if the function is broken. See example below.

c in ~
› INSTALL_DIR=~/.m-cli curl -fsSL https://raw.githubusercontent.com/rgcr/m-cli/master/install.sh | sh
Downloading m-cli from git to /usr/local
Cloning into '/usr/local/m-cli'...
remote: Counting objects: 38, done.
remote: Compressing objects: 100% (36/36), done.
remote: Total 38 (delta 3), reused 21 (delta 1), pack-reused 0
Unpacking objects: 100% (38/38), done.
Checking connectivity... done.

Done!

c in ~
› ls -la ~ | grep m-cli

c in ~
› ls -la /usr/local | grep m-cli
drwxr-xr-x   10 c     admin   340 17 Jul 01:30 m-cli

c in ~
›

Thanks again!

@colby-swandale colby-swandale changed the title m-cli not installing to installing to specified directory m-cli not installing to specified directory Jul 16, 2016
@rgcr
Copy link
Owner

rgcr commented Jul 16, 2016

Hello @colby-swandale , try with this command

INSTALL_DIR=$HOME/.m-cli sh <(curl -fsSL https://raw.githubusercontent.com/rgcr/m-cli/master/install.sh)

and reload your shell again, I will update the readme

@oleander
Copy link

Another solution would be to move INSTALL_DIR after the pipe. curl -fsSL https://raw.githubusercontent.com/rgcr/m-cli/master/install.sh | INSTALL_DIR=~/.m-cli sh.

@rgcr
Copy link
Owner

rgcr commented Jul 22, 2016

Closing ticket, there are no news.

@rgcr rgcr closed this as completed Jul 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants