Commit Graph

758 Commits

Author SHA1 Message Date
Marco Vermeulen
53b574de2c Further tweaks to update command output. 2018-07-04 00:36:44 +01:00
Marco Vermeulen
057997b678 Convert spaces to tabs. 2018-07-04 00:03:01 +01:00
Marco Vermeulen
b4e400e2b1 Fix substring bug on update. 2018-07-03 23:58:48 +01:00
Marco Vermeulen
96e4d7d051 Rename local diff variable. 2018-07-03 23:25:08 +01:00
Marco Vermeulen
35328ea944 Improve bash version handling. 2018-07-03 11:58:55 +01:00
Marco Vermeulen
a3ea00b280 Remove obsolete help for flush command. 2018-06-17 22:40:53 +01:00
Marco Vermeulen
e0b95001d3 Improve error message for version not found. 2018-05-27 23:54:07 +01:00
Giuseppe Ricupero
addf0e9d67 Refine bash major version check
The previous bash version check, `bash --version | grep ... `, may not work when the output is not in English (for example, it didn't work when the output was in Italian). For the same reason, I've modified also the line 113, to output the first command output of `bash --version` without checking for the content.
2018-05-22 13:05:12 +01:00
Marco Vermeulen
8e0ac4eaaf Tweak bash warning messages. 2018-04-06 14:01:32 +01:00
Marco Vermeulen
1f04e33eeb Add bash 3.x workaround for update command. 2018-04-06 13:47:09 +01:00
Marco Vermeulen
3dc04555fd Rename root project to sdkman-cli 2018-04-06 12:59:35 +01:00
Marco Vermeulen
dcb98336ad Remove obsolete flush command. 2018-04-06 11:25:54 +01:00
jjlin
c1189339e4 sdkman-init.sh: various optimizations and cleanup (#625)
In my tests, this reduces execution time by about 50% with `bash`,
and 40% with `zsh`. Most of the speedup is from removing calls to
external commands like `basename` and `cat`.
2018-02-26 21:28:13 +00:00
Marco Vermeulen
8d41092427 Touch the candidate cache on update. 2018-01-30 19:57:33 +01:00
Marco Vermeulen
1763a01c6f Improve wording and colours for cache update messages. 2018-01-30 19:57:33 +01:00
Marco Vermeulen
090675d2a2 Move all cache functions into dedicated script. 2017-12-22 09:19:01 +00:00
Marco Vermeulen
85a7c8eecf Remove deprecated outdated alias and mnemonic. 2017-12-22 08:43:17 +00:00
Marco Vermeulen
cc97303dff Fix timed out tests. 2017-12-22 08:38:38 +00:00
Marco Vermeulen
b7a00f683d Defer version cache check to command invocation. 2017-12-21 08:47:47 +00:00
Marcus Fihlon
3c3044bda6 🐛 Linux find is somewhat sensitive to the order of the parameters. #163 (#617) 2017-12-13 10:47:12 +00:00
Marcus Fihlon
039c32eef7 Skip all files in versions listing #163 (#616)
* 🐛 Skip all files in versions listing #163

* 🐛 We need to accept sumbolic links, too #163
2017-12-12 22:15:46 +00:00
Marco Vermeulen
2d5a8813ab Make tweaks to presentation of update command. 2017-12-06 08:56:40 +00:00
Marco Vermeulen
733d7d38c3 Allow update command if candidates cache has expired. 2017-12-05 18:29:30 +00:00
Marco Vermeulen
1056d27c53 Minor tweaks and cleanup. 2017-12-05 18:04:58 +00:00
Marco Vermeulen
c438dfef3e Perform candidate cache check in main function. 2017-12-05 18:04:58 +00:00
Marco Vermeulen
6836ecf170 Remove obsolete step defs. 2017-12-05 18:04:58 +00:00
Marco Vermeulen
661d3dbf7d Dump environment information when building bash env. 2017-12-05 18:04:58 +00:00
Marco Vermeulen
d097ee7b6b Introduce new update feature. 2017-12-05 18:04:58 +00:00
Marco Vermeulen
c2dc5540f8 Update copyright message. 2017-12-05 18:04:58 +00:00
Marco Vermeulen
228d0c1488 Remove stray references to activator. 2017-12-05 18:04:58 +00:00
Michal Bernhard
839e01c313 Update formatting of confirm text
Normalize confirm question with other confirm questions in project. Ie. using colon and space after

Before
Would you like to upgrade now? (Y/n)y

After:
Would you like to upgrade now? (Y/n) : y
2017-11-12 16:37:10 +00:00
Marco Vermeulen
0161d8e1d5 Cut over to use new stable/beta version endpoints. 2017-10-30 21:28:27 +00:00
techgaun
58f77b3897 get rid of gvm alias all together 2017-10-08 14:25:35 +01:00
Marco Vermeulen
193d3fb669 Fixes merge conflict for #598. 2017-09-06 21:56:56 +01:00
Marco Vermeulen
f0b55640b8 Merge remote-tracking branch 'origin/master' 2017-09-06 18:10:42 +01:00
Marco Vermeulen
c25b3d87bb Fixes #598: Offline mode candidate cache issue. 2017-09-06 18:10:26 +01:00
Alexei Zakharov
8b22e68ed7 Properly evaluate command from PAGER string
PAGER may contain arguments.  See `man 1 man` for details.  See `man bash` for the explanation of `eval`.
2017-08-31 21:57:04 +01:00
Marco Vermeulen
9754f6e2ba Cut over from legacy selfupdate endpoint. 2017-08-28 21:41:54 +01:00
mkr
a424c3a6bc fix for 598 2017-08-21 11:34:54 +02: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
7831f0a0ee Proposal specification for relative path local version. 2017-03-30 08:55:15 +01:00
Marco Vermeulen
e0ae92fa49 Remove deprecated method from FilesystemUtils. 2017-03-30 08:49:19 +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