Adding rClone and fixing GVM
This commit is contained in:
parent
a8fd0ae556
commit
ab0e0a31e8
23
setup.sh
23
setup.sh
@ -38,6 +38,7 @@ PACKAGES=(
|
||||
zoxide stow
|
||||
bind nmap socat tcpdump net-tools
|
||||
strace gdb hexyl
|
||||
rclone
|
||||
)
|
||||
|
||||
FINAL_LIST=""
|
||||
@ -242,23 +243,13 @@ unalias cd 2>/dev/null || true
|
||||
[[ -s "$HOME/.gvm/scripts/gvm" ]] && source "$HOME/.gvm/scripts/gvm"
|
||||
|
||||
if command -v gvm &> /dev/null; then
|
||||
TARGET_GO="go1.24.0"
|
||||
|
||||
echo -e "${BLUE} LOG:${YELLOW} Configuring Go ($TARGET_GO)...${NC}"
|
||||
|
||||
if [[ $(gvm list) != *"$TARGET_GO"* ]]; then
|
||||
echo -e "${BLUE} LOG:${YELLOW} Downloading Binary for $TARGET_GO...${NC}"
|
||||
gvm install $TARGET_GO -B || {
|
||||
echo -e "${RED} LOG: Binary not found. Bootstrapping with go1.22.9...${NC}"
|
||||
gvm install go1.22.9 -B
|
||||
gvm use go1.22.9
|
||||
gvm install $TARGET_GO
|
||||
}
|
||||
|
||||
gvm use $TARGET_GO --default
|
||||
echo -e "${BLUE} LOG:${YELLOW} Installing Go 1.24.11...${NC}"
|
||||
gvm install go1.24.11 -B
|
||||
gvm use go1.24.11 --default
|
||||
if [ $? -eq 0 ]; then
|
||||
echo -e "${BLUE} LOG:${YELLOW} Go version: $(go version)${NC}"
|
||||
else
|
||||
echo -e "${GREEN} LOG: $TARGET_GO is already installed.${NC}"
|
||||
gvm use $TARGET_GO --default
|
||||
echo -e "${RED} ERROR:${NC} GVM failed to install Go 1.24.11"
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user