Krolyxon
Auto
Light
Dark
Summary
Tree
Log
Refs
Find
Commit
ff7bd95
Branches
master
Refs →
aurora
/
.local
/
bin
/
aurora-askpass
13 lines · 254 B · Bourne Again Shell (bash)
Raw
Blame
History
Download
1
#!/bin/bash
2
# SUDO_ASKPASS helper: password prompt in aurora's runner.
3
4
prompt
="${1:-Password:}"
5
6
password
=$(aurora-run --dmenu --password --prompt="" --placeholder="$prompt" --lines=0)
7
8
if
[
$
?
-
eq 0
]
;
then
9
echo
"$password"
10
exit
0
11
else
12
exit
1
13
fi