From 7fd98964915dc3775f2dded8ff4bd74683d33fbe Mon Sep 17 00:00:00 2001 From: Matthew Wilson <54033231+wilson-matthew@users.noreply.github.com> Date: Tue, 9 Jun 2026 10:45:07 +0100 Subject: [PATCH] update install-wizard and readme to show that shards is required (#166) * update install-wizard and readme to show that shards is required Signed-off-by: Matthew Wilson <54033231+wilson-matthew@users.noreply.github.com> * updated CHANGELOG.md --------- Signed-off-by: Matthew Wilson <54033231+wilson-matthew@users.noreply.github.com> Co-authored-by: Jorge Morante --- install-wizard.sh | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/install-wizard.sh b/install-wizard.sh index 2755957..4dffe13 100755 --- a/install-wizard.sh +++ b/install-wizard.sh @@ -31,8 +31,8 @@ trap finish EXIT function install_from_source() { echo "Installing from source..." - # check if shards is installed - if ! command -v shards >/dev/null 2>&1; then + # check if crystal is installed + if ! command -v crystal >/dev/null 2>&1; then echo "crystal is not installed. Please install it first." echo "" echo " https://crystal-lang.org/install/" @@ -40,6 +40,15 @@ function install_from_source() { exit 1 fi + # check if shards is installed + if ! command -v shards >/dev/null 2>&1; then + echo "shards is not installed. Please install it first." + echo "" + echo " https://crystal-lang.org/reference/latest/man/shards/index.html" + echo "" + exit 1 + fi + pushd $CURRENT_DIR > /dev/null WIZARD_INSTALLATION_METHOD=build-from-source shards build --production popd > /dev/null