mirror of
https://github.com/brunofontes/linuxShortcuts.git
synced 2024-11-23 23:40:51 +00:00
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.
This commit is contained in:
parent
e44afcd5a3
commit
958dc79c93
@ -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!"
|
||||
|
Loading…
Reference in New Issue
Block a user