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