Code Monkey home page Code Monkey logo

Comments (10)

pledbrook avatar pledbrook commented on August 27, 2024

In a user-specified directory? Should the installation script ask where to put it? Or simply ask whether it should be a local or global install?

Another option would be for the user to set GVM_DIR before running the curl command, but that's not a common process for installation.

from sdkman-cli.

marc0der avatar marc0der commented on August 27, 2024

Yes, maybe reading it from console (with a question posed, defaulting to $HOME.gvm/).

The install script would then be doing a search/replace of @GVM_DIR@ with sed on the gvm-init.sh script on unpacking the zip.

The only problem with non-default values would be that we need to check that the user has the privileges to write for example to /usr/local.

I'll write up some scenarios first before I start any development.

from sdkman-cli.

bond- avatar bond- commented on August 27, 2024

Any updates on this issue?

from sdkman-cli.

pledbrook avatar pledbrook commented on August 27, 2024

I think the current focus of work is converting gvm to xvm. That said, if you or anyone else could help create some Cucumber-based scenarios for this feature, that would be great. As @marcoVermeulen said, the feature needs specifying first.

from sdkman-cli.

marc0der avatar marc0der commented on August 27, 2024

Totally agree. In the meanwhile, as @pledbrook pointed out, it is possible to set the GVM_DIR environment variable in your bash profile as workaround. I tested this and it works fine.

from sdkman-cli.

bond- avatar bond- commented on August 27, 2024

@marcoVermeulen Yes I'm doing so currently

from sdkman-cli.

fedotxxl avatar fedotxxl commented on August 27, 2024

+1 for this feature

from sdkman-cli.

ben3000 avatar ben3000 commented on August 27, 2024

Try as I might, I can't get the GVM_DIR setting to work.

I set export GVM_DIR=/usr/local/gvm in ~/.bashrc. In ~/.bash_profile, I source ~/.bashrc, I delete all gvm stuff, exit the terminal, open a new one, run curl -s get.gvmtool.net | bash and it still writes everything to $HOME/.gvm.

GVM_DIR is hard-coded into the script that curl downloads, so the value I exported isn't used at all.

from sdkman-cli.

marc0der avatar marc0der commented on August 27, 2024

Working on it. Should have something out by tomorrow.

On Thu, 27 Aug 2015 at 07:15 Ben Richardson [email protected]
wrote:

Try as I might, I can't get the GVM_DIR setting to work.

I set export GVM_DIR=/usr/local/gvm in ~/.bashrc. In ~/.bash_profile, I source
~/.bashrc, I delete all gvm stuff, exit the terminal, open a new one, run curl
-s get.gvmtool.net | bash and it still writes everything to $HOME/.gvm.

GVM_DIR is hard-coded into the script that curl downloads, so the value I
exported isn't used at all https://stackoverflow.com/a/4609727/2495717.


Reply to this email directly or view it on GitHub
#23 (comment).

from sdkman-cli.

marc0der avatar marc0der commented on August 27, 2024

This has been successfully implemented.

from sdkman-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.