dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 1f660a2ab0b393ed46184ee0b1238638fdfb4715
parent d2c86fedfba9071c1484ffb6c924f98fddb90da6
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Fri,  7 Feb 2020 13:04:12 +0100

Remove local variable declaration (non POSIX)

Diffstat:
M.local/bin/passmenu | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/.local/bin/passmenu b/.local/bin/passmenu @@ -58,7 +58,6 @@ strip_root_dir() match_password_file() { - local _passfile, _passfiles _passfiles="$(get_password_files | strip_root_dir | sed 's/\.gpg$//')" if [ "$#" -gt 0 ]; then _passfile="$(printf '%s' "$_passfiles" | grep -i "$@")" @@ -81,7 +80,7 @@ match_password_file() retrieve_password() { - local _passfile="${1%%.gpg}" + _passfile="${1%%.gpg}" if [ -n "$prefix" ]; then printf "$prefix" | xdotool type --clearmodifiers --file - fi