From b8e23104611e597c97e86897324375662613b9b8 Mon Sep 17 00:00:00 2001 From: wheaney <42350981+wheaney@users.noreply.github.com> Date: Sun, 19 May 2024 14:29:58 -0700 Subject: [PATCH] Check for flatpak and gnome-extensions installations before proceeding with setup --- gnome/bin/setup | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/gnome/bin/setup b/gnome/bin/setup index c64f61f..d5ec9fe 100755 --- a/gnome/bin/setup +++ b/gnome/bin/setup @@ -2,6 +2,16 @@ set -e +check_command() { + if ! command -v "$1" &>/dev/null; then + echo "Please install \"$1\" and make sure it's available in your \$PATH" + exit 1 + fi +} + +check_command "flatpak" +check_command "gnome-extensions" + # This script gets packaged with the release and should do the bulk of the setup work. This allows this setup to be tied # to a specific release of the code, and guarantees it will never run along-side newer or older binaries.