diff options
author | Rasmus Steinke <rasi@xssn.at> | 2017-11-18 20:42:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-18 20:42:25 +0100 |
commit | cfc0b39f3ffb76916efea9e61157e8a983d78920 (patch) | |
tree | f862eec70c55735498d2ba99090137175c10b6c8 | |
parent | 018b11a0b3818f789e7b53a2fabb5d43e2959d97 (diff) | |
download | rofi-pass-cfc0b39f3ffb76916efea9e61157e8a983d78920.tar.gz |
Update rofi-pass
There are occasions when $? shows the exit code of something else. While this is not one of these situations I'd rather have this consistent.
-rwxr-xr-x | rofi-pass | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -415,7 +415,8 @@ typeMenu () { local -a keys=(${!stuff[@]}) keys=(${keys[@]/$AUTOTYPE_field}) typefield=$({ echo ${AUTOTYPE_field} ; printf '%s\n' "${keys[@]}" | sort; } | _rofi -dmenu -p "Choose Field to type > ") - if [[ $? -eq 1 ]]; then + typefield_exit=$? + if [[ $typefield_exit -eq 1 ]]; then exit fi case "$typefield" in |