commit ab240b0ffe9f6e11a2deeb02216e6407ef129898
parent ddc200edd1a2c7494403174b0ea2b5feeecb4822
Author: Ayush Agarwal <ayush@fastmail.in>
Date: Tue, 21 Sep 2021 20:21:53 +0530
no need to use unset when there's local
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tessen b/tessen
@@ -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"