#!/bin/bash DISTRO=$(hostnamectl | grep 'Operating System' | cut -d ' ' -f 3-) echo "$DISTRO" COUNT=$(grep -c "$DISTRO" distros-supported.txt) echo "$COUNT" GOON="n" if [[ $COUNT -ne 1 ]]; then echo "Your distro or distro release, is not supported." echo "Please check distros-supported.txt." read -r -p "Do you want to continue in any case, answer: y/n ? " GOON if [[ $GOON = 'y' ]]; then echo "Retaking installation ..." else echo "Existing installation..." sleep 2 exit 1 fi fi