aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAyush Agarwal <ayush@fastmail.in>2021-09-21 20:21:53 +0530
committerAyush Agarwal <ayush@fastmail.in>2021-09-21 20:21:53 +0530
commitab240b0ffe9f6e11a2deeb02216e6407ef129898 (patch)
tree96d6f162258aac98c4fe80cd1919fa0f36c17a0f
parentddc200edd1a2c7494403174b0ea2b5feeecb4822 (diff)
no need to use unset when there's localv1.1.0
-rwxr-xr-xtessen3
1 files changed, 2 insertions, 1 deletions
diff --git a/tessen b/tessen
index 286fa56..6c17daa 100755
--- 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"