ask for non-free software

This commit is contained in:
2020-09-29 18:26:51 +02:00
parent 92653b85d4
commit 93afb48a1e
+10 -2
View File
@@ -49,7 +49,7 @@ function install()
if [ "$UID" != "0" ]; then if [ "$UID" != "0" ]; then
echo " Only root can execute this script, sorry." echo " Only root can execute this script, sorry."
echo " Try 'sudo $@'" echo " Try 'sudo $0 $@'"
exit 0 exit 0
fi fi
@@ -57,7 +57,15 @@ function install()
then then
echo "rar installed." echo "rar installed."
else else
rarInstall read -p "Do you want to install non-free software? (rar, unrar) [Y/N]: " PRIVSOFT
case ${PRIVSOFT} in
y|Y)
rarInstall;;
n|N)
echo -e "\nOnly will install free software.\n";;
*)
echo -e "Options: 'Y' or 'N': ";;
esac
fi fi
if [ -x "$(command -v apt)" ] if [ -x "$(command -v apt)" ]