diff options
author | Rasmus Steinke <rasi@xssn.at> | 2018-08-12 15:49:50 +0200 |
---|---|---|
committer | Rasmus Steinke <rasi@xssn.at> | 2018-08-12 15:49:50 +0200 |
commit | bedf843393424a14097e155423e5733bee32079a (patch) | |
tree | 7ad9820d054e5a7b0fb4fcd703802853917dc95f | |
parent | 5dbb7f56e03aac419d0f404e3454f03c107dd036 (diff) | |
download | rofi-pass-bedf843393424a14097e155423e5733bee32079a.tar.gz |
fix formatting, as mentioned in #140
-rwxr-xr-x | rofi-pass | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -418,11 +418,11 @@ mainMenu () { fi if [[ -z "${stuff["${USERNAME_field}"]}" ]]; then if [[ -n $default_user ]]; then - if [[ "$default_user" == ":filename" ]]; then - stuff["${USERNAME_field}"]="$(basename $selected_password)" + if [[ "$default_user" == ":filename" ]]; then + stuff["${USERNAME_field}"]="$(basename $selected_password)" else - stuff["${USERNAME_field}"]="${default_user}" - fi + stuff["${USERNAME_field}"]="${default_user}" + fi fi fi pass_content="$(for key in "${!stuff[@]}"; do printf '%s\n' "${key}: ${stuff[$key]}"; done)" |