diff options
| author | Maria Lisina <sekoohaka.sarisan@gmail.com> | 2026-06-27 00:31:09 +0300 |
|---|---|---|
| committer | Maria Lisina <sekoohaka.sarisan@gmail.com> | 2026-06-27 00:31:09 +0300 |
| commit | 37b583d4143b20cdf365a49b0ae1450fb6be3772 (patch) | |
| tree | aa5809f8e829cfab3142efaaee851f3a86c87ad9 | |
| parent | df281d2383851f373196d4b7e88633fc0d582ce4 (diff) | |
units/ib_authconfig: Use ib_mode to track authorization
Signed-off-by: Maria Lisina <sekoohaka.sarisan@gmail.com>
| -rw-r--r-- | operators/command_authorize.zsh | 2 | ||||
| -rw-r--r-- | units/ib_authconfig.zsh | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/operators/command_authorize.zsh b/operators/command_authorize.zsh index 6876a21..a8be540 100644 --- a/operators/command_authorize.zsh +++ b/operators/command_authorize.zsh @@ -2,8 +2,6 @@ # Copyright (C) 2024-2026 Danil Lisin # SPDX-License-Identifier: Apache-2.0 -command_authorize=0 - if [[ -n "${1}" ]] then ib_board="${1}" diff --git a/units/ib_authconfig.zsh b/units/ib_authconfig.zsh index 804298d..fd40f96 100644 --- a/units/ib_authconfig.zsh +++ b/units/ib_authconfig.zsh @@ -16,7 +16,7 @@ esac auth_dir="${user_config}/${ib_config}" -if ! [[ -d "${auth_dir}" || -n "${command_authorize}" ]] +if ! [[ -d "${auth_dir}" || -z "${ib_mode}" ]] then user_config="${default_user_config}" auth_dir="${user_config}/${ib_config}" |
