#!/bin/bash
#
# Welcom to use Bigemap Server
# Copyright(c) 2020 BIGEMAP
#

help_list() {
  echo -e "
The list command lists of all downloadable Bigemap Server versions.

Usage:

  ./bm-server-installer list

"
}

list() {
  wget -q -O - $SERVER_URL/bm-server/$PLATFORM/versions | grep -Eo "v([0-9]+\.)+[0-9]+-slim[0-9]?"

  if [ $? -ne 0 ]; then
    echo -e "${RED}List versions failed!${NC}"
    exit 1
  fi
}
