diff options
Diffstat (limited to 'kerl')
-rwxr-xr-x | kerl | 10 |
1 files changed, 3 insertions, 7 deletions
@@ -1435,11 +1435,7 @@ maybe_remove() { list_print() { if [ -f "$KERL_BASE_DIR/otp_$1" ]; then if [ "$(wc -l "$KERL_BASE_DIR/otp_$1")" != '0' ]; then - if [ -z "$2" ]; then - cat "$KERL_BASE_DIR/otp_$1" - else - cat "$KERL_BASE_DIR/otp_$2" - fi + cat "$KERL_BASE_DIR/otp_$1" return 0 fi fi @@ -1917,7 +1913,7 @@ case "$1" in rm -f "${KERL_BASE_DIR:?}"/otp_releases check_releases echo 'The available releases are:' - list_print releases spaces + list_print releases ;; *) update_usage @@ -1933,7 +1929,7 @@ case "$1" in case "$2" in releases) check_releases - list_print "$2" space + list_print "$2" echo "Run '$0 update releases' to update this list from erlang.org" ;; builds) |