aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRasmus Steinke <rasi@xssn.at>2018-08-12 15:49:50 +0200
committerRasmus Steinke <rasi@xssn.at>2018-08-12 15:49:50 +0200
commitbedf843393424a14097e155423e5733bee32079a (patch)
tree7ad9820d054e5a7b0fb4fcd703802853917dc95f
parent5dbb7f56e03aac419d0f404e3454f03c107dd036 (diff)
downloadrofi-pass-bedf843393424a14097e155423e5733bee32079a.tar.gz
fix formatting, as mentioned in #140
-rwxr-xr-xrofi-pass8
1 files changed, 4 insertions, 4 deletions
diff --git a/rofi-pass b/rofi-pass
index 7411998..5a54cca 100755
--- a/rofi-pass
+++ b/rofi-pass
@@ -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)"