-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall_lazydocker.sh
executable file
·54 lines (48 loc) · 1.93 KB
/
install_lazydocker.sh
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
if ! test -f checks/check_system.sh; then
eval "$(curl -fsSL https://raw.githubusercontent.com/excited-bore/dotfiles/main/checks/check_system.sh)"
else
. ./checks/check_system.sh
fi
if ! test -f aliases/.bash_aliases.d/00-rlwrap_scripts.sh; then
eval "$(curl -fsSL https://raw.githubusercontent.com/excited-bore/dotfiles/main/aliases/.bash_aliases.d/00-rlwrap_scripts.sh)"
else
. ./aliases/.bash_aliases.d/00-rlwrap_scripts.sh
fi
if ! type update-system &> /dev/null; then
if ! test -f aliases/.bash_aliases.d/update-system.sh; then
eval "$(curl -fsSL https://raw.githubusercontent.com/excited-bore/dotfiles/main/aliases/.bash_aliases.d/update-system.sh)"
else
. ./aliases/.bash_aliases.d/update-system.sh
fi
fi
if test -z $SYSTEM_UPDATED; then
readyn -Y "CYAN" -p "Update system?" updatesysm
if test $updatesysm == "y"; then
update-system
fi
fi
if ! type lazydocker &> /dev/null; then
if test $distro_base == "Arch" && ! test -z "$AUR_ins"; then
eval "$AUR_ins lazydocker"
else
if ! type go &> /dev/null || $(type go &> /dev/null && [[ $(go version | awk '{print $3}' | cut -c 3-) < 1.19 ]]); then
if ! test -f install_go.sh; then
tmp=$(mktemp) && wget -O $tmp https://raw.githubusercontent.com/excited-bore/dotfiles/main/install_go.sh
./$tmp
else
./install_go.sh
fi
go install github.com/jesseduffield/lazydocker@latest
fi
#if ! type curl &> /dev/null; then
# if test $distro_base == 'Debian'; then
# eval "$pac_ins curl"
# elif test $distro_base == 'Arch'; then
# eval "$pac_ins curl "
# fi
#fi
#curl https://raw.githubusercontent.com/jesseduffield/lazydocker/master/scripts/install_update_linux.sh | bash
fi
lazydocker --version
unset nstll
fi