Initial commit
This commit is contained in:
Executable
+23
@@ -0,0 +1,23 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
RAW_BASE="${RAW_BASE:-https://producao-gitea.0jo7zj.easypanel.host/tiago/Prospeccao_SeConectai/raw/branch/main/scripts}"
|
||||
BIN_DIR="${BIN_DIR:-/usr/local/bin}"
|
||||
|
||||
if ! command -v curl >/dev/null 2>&1; then
|
||||
echo "Erro: curl nao encontrado. Instale com: apt update && apt install -y curl"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
install_cmd() {
|
||||
local name="$1"
|
||||
curl -fsSL "$RAW_BASE/$name" -o "$BIN_DIR/$name"
|
||||
chmod 0755 "$BIN_DIR/$name"
|
||||
}
|
||||
|
||||
install_cmd seconectaiescavador.install
|
||||
install_cmd seconectaiescavador.update
|
||||
|
||||
echo "Comandos instalados em $BIN_DIR:"
|
||||
echo " seconectaiescavador.install"
|
||||
echo " seconectaiescavador.update"
|
||||
Reference in New Issue
Block a user