aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier@Portable <olivier.radisson@insa-lyon.fr>2018-08-02 20:53:27 +0200
committerOlivier@Portable <olivier.radisson@insa-lyon.fr>2018-08-02 20:53:27 +0200
commitac37bca5a45c4a50ea9f75aaf901f12c27d8e1ac (patch)
tree63b301c9bdbb9e503ea9587e311dd3204e564159
parent7841c77c9ac1ac9a004cce00170d7f8b8e868f94 (diff)
downloadrofi-pass-ac37bca5a45c4a50ea9f75aaf901f12c27d8e1ac.tar.gz
change %filename in :filename for user from filename functionnality
-rwxr-xr-xrofi-pass2
1 files changed, 1 insertions, 1 deletions
diff --git a/rofi-pass b/rofi-pass
index ca9cb2a..beabb69 100755
--- a/rofi-pass
+++ b/rofi-pass
@@ -417,7 +417,7 @@ mainMenu () {
fi
if [[ -z "${stuff["${USERNAME_field}"]}" ]]; then
if [[ -n $default_user ]]; then
- if [[ "$default_user" == "%filename" ]]; then
+ if [[ "$default_user" == ":filename" ]]; then
stuff["${USERNAME_field}"]="$(basename $selected_password)"
else
stuff["${USERNAME_field}"]="${default_user}"