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

install script does not recognize '--prefix' option but must #997

Closed
VladRassokhin opened this issue May 28, 2012 · 0 comments
Closed

install script does not recognize '--prefix' option but must #997

VladRassokhin opened this issue May 28, 2012 · 0 comments
Assignees
Milestone

Comments

@VladRassokhin
Copy link
Contributor

I'm running install --prefix "$(pwd)/inst from rvm sources and output is:

Unrecognized option: --prefix

  Usage:

    ./install [options]

  options:

    --auto    : Automatically update shell profile files.

                --prefix  : Installation prefix directory (rvm_path).

    --help    : Display help/usage (this) message

    --version : display rvm package version

after viewing install sources i have created patch

diff --git a/scripts/install b/scripts/install
index 18a153d..58e1320 100755
--- a/scripts/install
+++ b/scripts/install
@@ -73,6 +73,10 @@ do
       install_usage
       exit 0
       ;;
+    (--prefix)
+      DESTDIR="$1"
+      shift
+      ;;
     (*)
       echo "Unrecognized option: $token"
       install_usage

but it's doesn't help:

vlad@unit-421 /media/devel/rvm $ ./install --prefix "`pwd`/inst"

Upgrading the RVM installation in /home/vlad/.rvm/
^C

Killed because i don't want to update my installation. I just want to install rvm into specific folder.

@ghost ghost assigned mpapis May 28, 2012
@mpapis mpapis closed this as completed in bdb31fe May 28, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants