aboutsummaryrefslogtreecommitdiff
path: root/clone-dotfiles.sh
diff options
context:
space:
mode:
authorLibravatar Степанов Алексей Сергеевич <blueingreen@bluig.xyz>2025-02-14 10:49:32 +0000
committerLibravatar Степанов Алексей Сергеевич <blueingreen@bluig.xyz>2025-02-14 10:49:32 +0000
commitcba4697b1da3dc9452481487104ed180d2368f5a (patch)
treeb6a908f46141c6c5558f59a3e693789648d52c2a /clone-dotfiles.sh
parent40ac304b64dfeb28510012d335963fa420bbe4af (diff)
update clone-dotfiles.sh
Diffstat (limited to 'clone-dotfiles.sh')
-rwxr-xr-xclone-dotfiles.sh46
1 files changed, 0 insertions, 46 deletions
diff --git a/clone-dotfiles.sh b/clone-dotfiles.sh
deleted file mode 100755
index cbc43f3..0000000
--- a/clone-dotfiles.sh
+++ /dev/null
@@ -1,46 +0,0 @@
-#!/usr/bin/env bash
-
-declare -g httpsToken
-
-export
-function setStatusE() {
- if [[ "$1" = "on" ]]; then
- set -e
- else
- set +e
- fi
-}
-
-setStatusE "on"
-
-function getKdbxFile() {
- read -r passwordFileLink < <("$HOME/.local/bin/yadisk-direct" https://yadi.sk/d/o4TMFnHFobxTsw)
-
- wget "$passwordFileLink" -O ~/Passwords.kdbx
-}
-
-function openKeepass() {
- setStatusE "off"
-
- httpsToken=$(keepassxc-cli show --attribute https-token "$HOME/Passwords.kdbx" soft-serve 0)
- return 0
-}
-
-pipx install wldhx.yadisk-direct
-
-if [[ "$?" -eq 1 ]]; then
- echo "Ошибка установки wldhx.yadisk-direct... Выход"
- exit 1
-fi
-
-getKdbxFile
-
-while :; do
- if [[ $(openKeepass) -eq 0 ]]; then
- setStatusE "on"
- break
- fi
-done
-
-cd
-git clone https://"$httpsToken"@ss.bluig.xyz/.init.git "$HOME/init"