fix fzf password script
This commit is contained in:
parent
c9cf97e650
commit
d6f0f86e9f
|
@ -5,10 +5,7 @@ if [ -z "$ENTRY" ]; then
|
|||
exit 1
|
||||
fi
|
||||
PASSENTRY=$(pass "$ENTRY")
|
||||
(builtin echo "$PASSENTRY" | head -n1 | nohup wl-copy -f -n --sensitive) &
|
||||
WLCOPY_PID=$!
|
||||
disown -h
|
||||
nohup bash -c "sleep 30s; kill $WLCOPY_PID" &
|
||||
(builtin echo "$PASSENTRY" | head -n1 | timeout 30 wl-copy -f -n --sensitive) &
|
||||
disown -h
|
||||
|
||||
NOTIFICATION=$(builtin echo "$PASSENTRY" | sed 1d)
|
||||
|
|
Loading…
Reference in a new issue