mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2024-11-10 15:10:55 +00:00
Stupid fix: abort after 3 attempts missing
This commit is contained in:
parent
18febabbe5
commit
7a16c7f187
3
src/tomb
3
src/tomb
@ -295,7 +295,7 @@ check_priv() {
|
||||
sudok=false
|
||||
sudo -n ${TOMBEXEC} &> /dev/null
|
||||
if [ $? != 0 ]; then # if not then ask a password
|
||||
for imnotused in 1 2 3; do
|
||||
for i in 1 2 3; do
|
||||
cat <<EOF | pinentry 2>/dev/null | awk '/^D / { sub(/^D /, ""); print }' | sudo -S -v
|
||||
OPTION ttyname=$TTY
|
||||
OPTION lc-ctype=$LANG
|
||||
@ -308,6 +308,7 @@ EOF
|
||||
break
|
||||
fi
|
||||
if [[ $i == 3 ]]; then
|
||||
exit 16
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user