fix: verify os before installation

The script will fail on non-linux systems to avoid accidental execution on unsupported platforms
This commit is contained in:
Sannidhya 2025-02-20 02:43:37 +05:30
parent 6e2f4182fb
commit 8b6596a236
No known key found for this signature in database

View file

@ -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" icon_path="$app_installation_directory/browser/chrome/icons/default/default128.png"
executable_path=$app_installation_directory/zen 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" echo -e "Welcome to Zen tarball installer, just chill and wait for the installation to complete!\n"
sleep 1 sleep 1