Marco Vermeulen
9754f6e2ba
Cut over from legacy selfupdate endpoint.
2017-08-28 21:41:54 +01:00
sparsick
2db598e988
#579 : use command working with blanks in PATH variable
2017-05-27 15:54:56 +01:00
Michael Osipov
11554105f9
Fix #562 : Use /usr/bin/env bash for the shebang
...
/bin/bash will not work on OSes which do not have bash as default shell, e.g.,
*BSD. Use common env with bash from PATH to launch scripts.
2017-04-27 09:10:24 +01:00
Pol Bassiner
8391f6e7a2
Make upgrade command bash/zsh compatible
2017-04-12 06:51:38 +01:00
Marco Vermeulen
5caa2ec51f
Validate path for local installation.
2017-03-30 22:50:02 +01:00
Marco Vermeulen
52cb511f99
Handle relative path for local installation.
2017-03-30 22:37:10 +01:00
Marco Vermeulen
f632567a8e
Fix download fails with curl usage error on ZSH ( #531 )
2017-03-29 08:42:29 +01:00
Marco Vermeulen
ab14a419f9
Fixes longstanding array composition bug on zsh. ( #210 )
2017-03-27 20:47:50 +01:00
Marco Vermeulen
629054d8d1
Consume new candidate list api.
2017-03-25 16:11:37 +00:00
Marco Vermeulen
132c1b8b39
Enrich linux sdkman platform environment variable to include architecture.
2017-03-06 20:00:40 +00:00
Marco Vermeulen
29777409c8
Revert initial 32 bit Linux implementation.
2017-03-06 07:29:02 +00:00
Marco Vermeulen
0d87947ee8
#533 Add client side support for 32bit Linux candidates.
2017-03-05 15:55:50 +00:00
Marco Vermeulen
1fbfe657a2
#521 Reverts white fonts back to no colour.
2017-01-11 22:28:58 +00:00
Pol Bassiner
367a0718bd
Make upgrade command handle properly multi-upgrade in bash ( #524 )
2017-01-11 21:30:24 +00:00
Thomas Rasmussen
a028796c89
Revert "Fix IFS backup bug."
...
This reverts commit 05bb6d4c4a .
Changing the $IFS causes issues on some systems:
"Yesterday I updated sdkman to 5.3.0+159, and now I can not login to
OS (ubuntu 16.10)"
2016-12-28 19:03:33 +00:00
Marco Vermeulen
4e6ea2aad6
Fix bug in rendering confirmation messages on certain platforms.
2016-12-26 23:15:07 +00:00
Marco Vermeulen
8543191f63
Fix ordering of offline version list.
2016-12-24 14:52:12 +00:00
Marco Vermeulen
5596719682
Border line length updated to 80 chars.
2016-12-24 14:28:46 +00:00
Marco Vermeulen
d835139bb1
Format code: convert all spaces to tabs.
2016-12-24 14:11:42 +00:00
Marco Vermeulen
a38328cdee
Fix formatting of help output.
2016-12-24 10:45:55 +00:00
Pol Bassiner
38e0c47826
Rename outdated command to upgrade ( #507 )
...
Thanks again for the great work!
2016-12-24 09:27:28 +00:00
Marco Vermeulen
c3c85507f5
Fix compatibility with macosx colours.
2016-12-23 23:20:28 +00:00
Marco Vermeulen
1fdaaf5ee9
Add config for colour console.
2016-12-23 19:36:24 +00:00
Marco Vermeulen
d9ab1260b1
Add colour to the console!
2016-12-23 18:33:58 +00:00
Marco Vermeulen
9f3d0ed506
Refine cuke of sdkman_auto_answer configuration on installation.
2016-12-21 13:55:06 +00:00
Pol Bassiner
3c400cd302
Make first installed candidate version automatically the default one
2016-12-21 13:55:06 +00:00
Marco Vermeulen
f240fd6e2a
Further tweaks and improvements to #502
2016-12-20 22:37:14 +00:00
Marco Vermeulen
26abbe6d83
Some minor improvements to outdated command issue #502
2016-12-20 22:27:33 +00:00
Pol Bassiner
a207f97909
Outdated command can update all outdated candidates ( #502 )
2016-12-20 14:38:00 +00:00
Marco Vermeulen
05bb6d4c4a
Fix IFS backup bug.
2016-12-18 16:24:32 +00:00
Samir Talwar
ab297da811
Don't use the output of which or command -v. ( #494 )
...
`which less` has the following output in some versions of Bash:
less is /usr/bin/less
`command -v less` outputs the path, but unfortunately has non-executable output in the case of aliases:
$ alias less='my-super-less'
$ command -v less
alias less='my-super-less'
In this change, we use the exit code, not the output. (Thanks @halyph.)
2016-12-09 23:11:33 +00:00
Jason Palmer
e00e33b532
Fix bug when trying to use curl to get candidate list. ( #498 )
...
Set curl timeout defaults _before_ using curl to get candidates.
2016-12-09 08:10:35 +00:00
Pol Bassiner
decede2354
Change random string generation to be ansible friendly ( #496 )
2016-12-08 22:07:24 +00:00
Marco Vermeulen
03b43c6f2b
Propagate platform to list view.
2016-12-01 21:53:36 +00:00
Marco Vermeulen
d87c211a2c
Always get candidate csv from current candidates api.
2016-11-29 18:20:53 +00:00
Marco Vermeulen
d700b2175e
No longer mandate JAVA_HOME to be set on initialisation.
2016-11-28 13:50:44 +00:00
Marco Vermeulen
e9e4574495
Fix default version bug affecting platform specific candidates.
2016-11-28 09:02:17 +00:00
Marco Vermeulen
e37872123d
Fix random sequence generation for raw binary name on osx.
2016-11-23 21:38:09 +00:00
Marco Vermeulen
4411444ece
Improve version and candidate cache handling, bolster tests.
2016-11-23 21:32:59 +00:00
Marco Vermeulen
4a34f166a1
Add resilience to candidates cache and fix false positives in tests.
2016-11-23 18:19:42 +00:00
Marco Vermeulen
977817ebd8
Cut over to new default candidate endpoint.
2016-11-21 21:52:21 +00:00
Marco Vermeulen
1f86833f28
Export beta channel to selfupdate script.
2016-11-19 12:21:11 +00:00
Marco Vermeulen
9811f729ed
Tweak logging in installation script.
2016-11-19 11:56:17 +00:00
Marco Vermeulen
a0b74de8d4
Improve stubbing of pre/post installation hooks.
2016-11-17 22:44:58 +00:00
Marco Vermeulen
53eb34242b
Makes post-installation hook safer by sourcing implemented function.
2016-11-17 17:58:27 +00:00
Marco Vermeulen
0c965b1017
Makes pre-installation hook safer by sourcing implemented function.
2016-11-17 08:54:15 +00:00
Marco Vermeulen
d4c8ec99b0
Clean code.
2016-11-16 19:04:48 +00:00
Marco Vermeulen
743975dcaa
Use new candidates/all endpoint for candidate cache in beta channel.
2016-11-16 09:07:31 +00:00
Marco Vermeulen
676fe1a7ce
Always expire candidate cache after a day.
2016-11-16 08:40:03 +00:00
Marco Vermeulen
0f6c6f5b55
Java installation on Linux passing test.
2016-11-14 08:36:25 +00:00