-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsdkman.sh
More file actions
30 lines (26 loc) · 710 Bytes
/
Copy pathsdkman.sh
File metadata and controls
30 lines (26 loc) · 710 Bytes
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
#!/bin/bash
# name: SDKMAN
# version: 1.0
# description: sdkman_desc
# icon: sdkman.png
# repo: https://sdkman.io
# revert: internal
# --- Start of the script code ---
source "$SCRIPT_DIR/libs/linuxtoys.lib"
_lang_
sudo_rq
pkg_install zip unzip
[ -d ~/.sdkman ] && {
zenity --question \
--text "$rmmsg" \
--width 360 --height 300 && {
rm -rf ~/.sdkman && {
(
[ -f ~/.bashrc ] && prep_edit "$HOME/.bashrc" && sed -i '/SDKMAN TO WORK/,+2d' ~/.bashrc
[ -f ~/.zshrc ] && prep_edit "$HOME/.zshrc" && sed -i '/SDKMAN TO WORK/,+2d' ~/.zshrc
) && { zeninf "$msg018"; }
}
}
exit 0;
}
curl -s "https://get.sdkman.io?ci=true" | bash && { zeninf "$msg018"; } || { fatal "Installation failure"; }