Is storing my password this way safe?
echo 'Write sudo password (will not be displayed) and hit enter'
read -s password
I need it to make commands like this:
echo $password | sudo -S apt-get install -y foo bar
Is storing my password this way safe?
echo 'Write sudo password (will not be displayed) and hit enter'
read -s password
I need it to make commands like this:
echo $password | sudo -S apt-get install -y foo bar