File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ function __sdkman_list_candidates() {
3030 if [[ " $SDKMAN_AVAILABLE " == " false" ]]; then
3131 __sdkman_echo_red " This command is not available while offline."
3232 else
33- __sdkman_page echo " $( __sdkman_secure_curl " ${SDKMAN_CANDIDATES_API} /candidates/list" ) "
33+ __sdkman_echo_paged " $( __sdkman_secure_curl " ${SDKMAN_CANDIDATES_API} /candidates/list" ) "
3434 fi
3535}
3636
@@ -44,7 +44,7 @@ function __sdkman_list_versions() {
4444 if [[ " $SDKMAN_AVAILABLE " == " false" ]]; then
4545 __sdkman_offline_list " $candidate " " $versions_csv "
4646 else
47- __sdkman_echo_no_colour " $( __sdkman_secure_curl " ${SDKMAN_CANDIDATES_API} /candidates/${candidate} /${SDKMAN_PLATFORM} /versions/list?current=${CURRENT} &installed=${versions_csv} " ) "
47+ __sdkman_echo_paged " $( __sdkman_secure_curl " ${SDKMAN_CANDIDATES_API} /candidates/${candidate} /${SDKMAN_PLATFORM} /versions/list?current=${CURRENT} &installed=${versions_csv} " ) "
4848 fi
4949}
5050
Original file line number Diff line number Diff line change @@ -65,13 +65,13 @@ function __sdkman_secure_curl_with_timeouts() {
6565 fi
6666}
6767
68- function __sdkman_page () {
68+ function __sdkman_echo_paged () {
6969 if [[ -n " $PAGER " ]]; then
70- " $@ " | eval $PAGER
70+ echo " $@ " | eval " $PAGER "
7171 elif command -v less >& /dev/null; then
72- " $@ " | less
72+ echo " $@ " | less
7373 else
74- " $@ "
74+ echo " $@ "
7575 fi
7676}
7777
You can’t perform that action at this time.
0 commit comments