diff options
author | Ayush Agarwal <ayush@fastmail.in> | 2021-09-21 20:21:53 +0530 |
---|---|---|
committer | Ayush Agarwal <ayush@fastmail.in> | 2021-09-21 20:21:53 +0530 |
commit | ab240b0ffe9f6e11a2deeb02216e6407ef129898 (patch) | |
tree | 96d6f162258aac98c4fe80cd1919fa0f36c17a0f | |
parent | ddc200edd1a2c7494403174b0ea2b5feeecb4822 (diff) |
no need to use unset when there's localv1.1.0
-rwxr-xr-x | tessen | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -192,12 +192,13 @@ print_help() { } validate_backend() { + local bmn_opt=() + if [[ "$BACKEND" == "bemenu" ]]; then bmn_opt=("-i -l 10 -w --scrollbar=autohide -n") export BEMENU_OPTS="${BEMENU_OPTS:-${bmn_opt[*]}}" readonly BACKEND="bemenu" readonly BACKEND_OPTS="" - unset -v bmn_opt elif [[ "$BACKEND" == "rofi" ]]; then readonly BACKEND="rofi" readonly BACKEND_OPTS="-dmenu" |