Check for flatpak and gnome-extensions installations before proceeding with setup

This commit is contained in:
wheaney 2024-05-19 14:29:58 -07:00
parent 3498910758
commit b8e2310461
1 changed files with 10 additions and 0 deletions

View File

@ -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.