Skip to content

Commit

Permalink
fix formatting, as mentioned in #140
Browse files Browse the repository at this point in the history
  • Loading branch information
carnager committed Aug 12, 2018
1 parent 5dbb7f5 commit bedf843
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rofi-pass
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
Expand Down

0 comments on commit bedf843

Please sign in to comment.