From 804203c2e0aecae33c254f6f6f75a5d01a1841bc Mon Sep 17 00:00:00 2001 From: MatMoul Date: Thu, 10 Nov 2022 21:30:45 +0100 Subject: [PATCH] whiptail broken, switching to dialog --- archdi | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/archdi b/archdi index 4613b0c..d3b0bd8 100644 --- a/archdi +++ b/archdi @@ -143,16 +143,10 @@ dependencies(){ echo "" echo "Checking $apptitle dependencies :" echo "" - if [ -e /usr/bin/wget ]; then - echo "wget : installed" + if [ -e /usr/bin/dialog ]; then + echo "dialog : installed" else - echo "wget : not installed" - needinstall="true" - fi - if [ -e /usr/bin/whiptail ]; then - echo "libnewt : installed" - else - echo "libnewt : not installed" + echo "dialog : not installed" needinstall="true" fi if [ "$needinstall" = "true" ]; then @@ -162,7 +156,7 @@ dependencies(){ case "$choice" in n|N ) exit 1;; esac - pacman -S --needed --noconfirm wget libnewt + pacman -S --needed --noconfirm dialog fi echo "" echo "Checking bin version..." @@ -174,7 +168,7 @@ chkupgrade(){ if [ ! "$version" = "$lastver" ]; then if (whiptail --backtitle "$apptitle" --yesno "New version found !\n\nInstall last version ?" 0 0) then cd /tmp - wget $binurl + curl -LO $binurl sh archdi -i exit 0 fi