mirror of
https://github.com/octoleo/Purse.git
synced 2025-01-14 11:03:09 +00:00
Fix clip functionality
This commit is contained in:
parent
404d5402d1
commit
e6c3828504
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,3 +1,3 @@
|
|||||||
purse.*.tar
|
purse.*.tar
|
||||||
purse.index
|
purse.index*
|
||||||
safe/
|
safe/
|
||||||
|
3
purse.sh
3
purse.sh
@ -105,7 +105,8 @@ read_pass () {
|
|||||||
|
|
||||||
prompt_key "password"
|
prompt_key "password"
|
||||||
if [[ -s "${spath}" ]] ; then
|
if [[ -s "${spath}" ]] ; then
|
||||||
decrypt "${spath}" || fail "Failed to decrypt ${spath}"
|
clip <(decrypt "${spath}" | head -1) || \
|
||||||
|
fail "Failed to decrypt ${spath}"
|
||||||
else fail "Secret not available"
|
else fail "Secret not available"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user