mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
scripts/checkdeps: minor changes
- shortened message if Aptitude is not installed - automatic installation with Aptitude after user have chosen to install Aptitude ("exit 1" was called before wich is quite stupid - sorry for that)
This commit is contained in:
parent
a751a33b5c
commit
58d674f49d
@ -76,15 +76,11 @@ if [ -n "$need" ]; then
|
|||||||
if ( ! [ -z "`which aptitude 2>/dev/null`" ] && [ "$ans" = "y" ]); then
|
if ( ! [ -z "`which aptitude 2>/dev/null`" ] && [ "$ans" = "y" ]); then
|
||||||
sudo aptitude install $need_pkg
|
sudo aptitude install $need_pkg
|
||||||
elif [ "$ans" = "y" ]; then
|
elif [ "$ans" = "y" ]; then
|
||||||
echo "**** The Package-Manager Aptitude is not installed on"
|
echo "**** The recommended Package-Manager Aptitude is not installed"
|
||||||
echo "**** your system which is recommended"
|
|
||||||
read -p "(y) install Aptitude :: (n) use APT " ans
|
read -p "(y) install Aptitude :: (n) use APT " ans
|
||||||
if [ "$ans" = "y" ]; then
|
if [ "$ans" = "y" ]; then
|
||||||
sudo apt-get install aptitude
|
sudo apt-get -y install aptitude
|
||||||
echo "**** Please restart the build-process to install the"
|
sudo aptitude install $need_pkg
|
||||||
echo "**** required build-dependencies"
|
|
||||||
echo "********"
|
|
||||||
exit 1
|
|
||||||
elif [ "$ans" = "n" ]; then
|
elif [ "$ans" = "n" ]; then
|
||||||
sudo apt-get install $need_pkg
|
sudo apt-get install $need_pkg
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user