Browse Source

ask for non-free software

pull/8/head
radikal 3 years ago
parent
commit
93afb48a1e
1 changed files with 10 additions and 2 deletions
  1. +10
    -2
      lib/check.sh

+ 10
- 2
lib/check.sh View File

@ -49,7 +49,7 @@ function install()
if [ "$UID" != "0" ]; then
echo " Only root can execute this script, sorry."
echo " Try 'sudo $@'"
echo " Try 'sudo $0 $@'"
exit 0
fi
@ -57,7 +57,15 @@ function install()
then
echo "rar installed."
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
if [ -x "$(command -v apt)" ]


Loading…
Cancel
Save