Bash is not a login shell
I'm using Debian 7. I've installed version 0.4.2 according to the instruction. I saw it has been fixed (or should be so), but I still get a non-login shell. Is there is something I could do wrong?
Here's my test script:
spec:
script:
- "[[ $- == *i* ]] && echo 'Interactive' || echo 'Not interactive'"
- "shopt -q login_shell && echo 'Login shell' || echo 'Not login shell'"
- rvm -v
- rvm use $(cat .ruby-version)
- ruby -v
And what I get in build log:
gitlab-ci-multi-runner 0.4.2 (1e86428)
Using Shell executor...
Running on test-ci-runner...
Fetching changes...
From https://***/test-ci-runner
0bb53cf..d0d2ec9 gitlab-ci-test -> origin/gitlab-ci-test
Checking out d0d2ec90 as gitlab-ci-test...
[[ $- == *i* ]] && echo 'Interactive' || echo 'Not interactive'
Not interactive
shopt -q login_shell && echo 'Login shell' || echo 'Not login shell'
Not login shell
rvm -v
rvm 1.26.11 (latest) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]
rvm use $(cat .ruby-version)
cat .ruby-version)
cat .ruby-version
RVM is not a function, selecting rubies with 'rvm use ...' will not work.
You need to change your terminal emulator preferences to allow login shell.
Sometimes it is required to use `/bin/bash --login` as the command.
Please visit https://rvm.io/integration/gnome-terminal/ for an example.
ruby -v
ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-linux]
Build succeeded.