From 93ad8f04b5b043395834c706a3f63ea981ec68e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9mentine=20Urquizar?= Date: Sat, 16 Oct 2021 17:36:36 +0200 Subject: [PATCH] Add check if $latest is empty --- download-latest.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/download-latest.sh b/download-latest.sh index 872be32fa..389ad3e1b 100644 --- a/download-latest.sh +++ b/download-latest.sh @@ -179,6 +179,13 @@ failure_usage() { # MAIN latest="$(get_latest)" +if [ "$latest" = '' ]; then + echo '' + echo 'Impossible to get the latest stable version of MeiliSearch.' + echo 'Please let us know about this issue: https://github.com/meilisearch/meilisearch-swift/issues/new/choose' + exit 1 +fi + if ! get_os; then failure_usage exit 1