From 958dc79c938ed5b1b54d66205758c7d9b29bb4f1 Mon Sep 17 00:00:00 2001 From: Bruno Fontes Date: Thu, 25 Oct 2018 14:27:06 -0300 Subject: [PATCH] Fixing cases where password were being displayed Sometimes the "echo -e "$sudoPass\n" | yes" command were displaying the password instead of confirming something. So I changed it to make one thing at a time. First I refresh the use of sudo with password, just using sudo in an echo command. So I can use the command that really needs it with not worries about asking the password. --- Pacman/updateRepositories.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Pacman/updateRepositories.sh b/Pacman/updateRepositories.sh index 78c0ac9..1ba1aba 100755 --- a/Pacman/updateRepositories.sh +++ b/Pacman/updateRepositories.sh @@ -16,16 +16,18 @@ read -s sudoPass echo s "echo '**********'" -bold "Pacman-mirrors -g" -s "pacman-mirrors -g" +bold "Pacman-mirrors -c" +s "pacman-mirrors -c Brazil Chile United_States" -bold "Updating with PACMAN..." +#bold "Updating with PACMAN..." s "pacman -Syu --color always" bold "Updating with AURMAN..." +s "echo" aurman -Su --noedit --noconfirm --color always bold "Cleaning stuff..." -echo -e "$sudoPass\n" | yes | (sudo -S pacman -Rns $(pacman -Qtdq) --color always) +s "echo" +yes | (sudo -S pacman -Rns $(pacman -Qtdq) --color always) notify-send "Update script has finished!"