blob: fd40f967dae1e9e8ce06d483573f97b64ebc0088 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
# Copyright (C) 2024-2026 Maria Lisina
# Copyright (C) 2024-2026 Danil Lisin
# SPDX-License-Identifier: Apache-2.0
case "${ib_board}" in
(a|d)
source "${auth}/config/donmai.zsh"
;;
(i|s)
source "${auth}/config/sankakucomplex.zsh"
;;
(k|y)
source "${auth}/config/moebooru.zsh"
;;
esac
auth_dir="${user_config}/${ib_config}"
if ! [[ -d "${auth_dir}" || -z "${ib_mode}" ]]
then
user_config="${default_user_config}"
auth_dir="${user_config}/${ib_config}"
fi
timestamp_file="${auth_dir}/timestamp"
token_file="${auth_dir}/token"
login_file="${auth_dir}/${ib_login_file}"
key_file="${auth_dir}/${ib_key_file}"
|