Prompt for password
This commit is contained in:
parent
43f32ee7ff
commit
b74fdc59fd
|
@ -164,7 +164,7 @@ update-system() {
|
||||||
|
|
||||||
if [ -z "$password" ]; then
|
if [ -z "$password" ]; then
|
||||||
echo -e "\033[32;1m=== Starting system update, please enter your password ===\033[0m"
|
echo -e "\033[32;1m=== Starting system update, please enter your password ===\033[0m"
|
||||||
read -s password
|
read -sep "Password: " password
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo $password | sudo -Sp "" true
|
echo $password | sudo -Sp "" true
|
||||||
|
|
Loading…
Reference in New Issue