summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-01-26 03:24:23 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-01-26 03:24:23 +0900
commitaa032cee1714a550507692a4ddba9560ee04c90e (patch)
tree9e44b66354b58f3e5c1856888e220d28902e182c
parenteb3a38cf126f401323b9b3b0aa0355a182ef81fa (diff)
modified bin/fzfpass
-rwxr-xr-xar/.local/bin/fzfpass6
1 files changed, 2 insertions, 4 deletions
diff --git a/ar/.local/bin/fzfpass b/ar/.local/bin/fzfpass
index d4b4a90..9c173c8 100755
--- a/ar/.local/bin/fzfpass
+++ b/ar/.local/bin/fzfpass
@@ -56,8 +56,6 @@ fi' < /dev/tty > /dev/tty 2>&1)+reload(tree -Ffi | grep '.gpg' | sed 's/.gpg$//g
--bind="tab:replace-query"
)
-PASSDATA="$(pass "$PASSFILE")"
-PASSWORD="$(printf '%s' "$PASSDATA" | head -n 1)"
SHOW_PASSDATA=false
if [ "$1" = "-i" ]; then
@@ -67,10 +65,10 @@ fi
if [ "$SHOW_PASSDATA" = true ]; then
PASSDATA="$(pass "$PASSFILE")"
- printf "%s" "$PASSDATA"
+ echo "$PASSDATA"
else
PASSWORD="$(pass show "$PASSFILE" | head -n 1)"
- printf "%s" "$PASSWORD"
+ echo "$PASSWORD"
if [ -n "$PASSWORD" ]; then
case "$(uname)" in