Delete get-sudo-password
This commit is contained in:
parent
4adabc1a6f
commit
efdd807814
@ -1,24 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
file=/tmp/sudo-password
|
||||
|
||||
while true;
|
||||
do
|
||||
|
||||
read -r -s -p "Your password please: " password
|
||||
|
||||
res=$(echo "$password" | sudo -S -k -l)
|
||||
|
||||
echo $res
|
||||
|
||||
if [ "$res" == "" ]; then
|
||||
echo "Incorrect password, try again..."
|
||||
else
|
||||
break;
|
||||
fi
|
||||
|
||||
done
|
||||
|
||||
rm $file --force # to ignore if it isn't there
|
||||
touch $file
|
||||
echo "$password" > $file
|
||||
Loading…
Reference in New Issue
Block a user