From 8b6596a2368070ace98fecab149fc4605c1ef33a Mon Sep 17 00:00:00 2001 From: Sannidhya <58990408+sannidhyaroy@users.noreply.github.com> Date: Thu, 20 Feb 2025 02:43:37 +0530 Subject: [PATCH] `fix`: verify os before installation The script will fail on non-linux systems to avoid accidental execution on unsupported platforms --- install.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/install.sh b/install.sh index 23b7f8b..cf46ba5 100644 --- a/install.sh +++ b/install.sh @@ -17,6 +17,13 @@ desktop_in_local_applications="$local_application_path/$app_name.desktop" icon_path="$app_installation_directory/browser/chrome/icons/default/default128.png" executable_path=$app_installation_directory/zen +# Check OS +if [[ "$(uname)" != "Linux" ]]; then + echo "This script is only for Linux." + echo "Visit https://github.com/zen-browser/desktop#-installation to learn more about supported operating systems" + exit 1 +fi + echo -e "Welcome to Zen tarball installer, just chill and wait for the installation to complete!\n" sleep 1