blob: ab91591b6d0bff3ee27629a9b3cd9b27caf3bbb3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#!/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
|