From 771fa61bd76068486ad473993326ecc413fe02ed Mon Sep 17 00:00:00 2001 From: tuxwarrior Date: Wed, 1 May 2024 18:04:24 -0500 Subject: [PATCH] u --- scripts/99_software.sh | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/scripts/99_software.sh b/scripts/99_software.sh index ae84b9d..15a9190 100644 --- a/scripts/99_software.sh +++ b/scripts/99_software.sh @@ -8,9 +8,8 @@ echo "<< 99_software.sh >>" user=poq -if [ "$EUID" -ne 0 ] - then echo "error: run as 'root'" - exit +if [ "$EUID" -ne 0 ] then + echo "error: run as 'root'"; exit fi this_file_name=`basename "$0"` @@ -39,7 +38,7 @@ param_check() { # ----- # always update the system # ----- -sudo pacman -Syu +pacman -Syu echo "-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-" @@ -106,14 +105,17 @@ if [ ${operation} == "update" ] ; then if [[ -n "$list_aur" ]] then echo "^^^^^^^^^^^^^^^^^^^^^^^^^ ${list_aur}" + echo ${list_aur} > /tmp/list_aur.txt #sudo -u ${user} bash -c 'yay -S --needed --noconfirm --timeupdate ${list_aur}' #sudo -u ${user} bash -c 'yay' - runuser -l ${user} -c 'echo "--------- __ ---------- : ${list_aur}"' + runuser -l ${user} -c 'ls -al /tmp/list_aur.txt' #su ${user} #yay -S --needed --noconfirm --timeupdate ${list_aur} + #sudo -u ${user} bash -c 'echo "--------- __ ---------- : ${list_aur}"' + #yay -S --needed --noconfirm --timeupdate ${list_aur} - sudo -u ${user} bash -c 'echo "--------- __ ---------- : ${list_aur}"' + #sudo -u ${user} bash -c 'echo "--------- __ ---------- : ${list_aur}"' else echo "No AUR packages to install" fi