dev: automated commit - 2025-09-22 09:56:48

This commit is contained in:
Mariano Z. 2025-09-22 09:56:48 -03:00
parent dbcbcf4077
commit 7bf9a172ac
37 changed files with 311 additions and 140 deletions

View file

@ -1,12 +1,12 @@
#!/bin/bash
MODULE_URL="mzunino.com.uy/go/code"
#!/usr/bin/env bash
MODULE_URL="github.com/marianozunino/code/v2"
BINARY_NAME="code"
TARGET_DIR="$HOME/.local/bin"
BINARY_PATH="$TARGET_DIR/$BINARY_NAME"
if [ ! -x "$BINARY_PATH" ]; then
notify-send "📦 Installing $BINARY_NAME" "Installing from $MODULE_URL..."
GO111MODULE=on GOBIN="$TARGET_DIR" go install "$MODULE_URL@master" || {
GO111MODULE=on GOBIN="$TARGET_DIR" go install "$MODULE_URL@v2.0.2" || {
notify-send -u critical "Installation Failed" "Failed to install $BINARY_NAME from $MODULE_URL"
exit 1
}