#!/usr/bin/env bash set -euo pipefail BASE="https://git.thomasmlg.fr/thomas/Docker/raw/branch/release" DIR="/opt/lxc-updater" mkdir -p "$DIR" cd "$DIR" curl -fsSL "$BASE/detect.sh" -o detect.sh curl -fsSL "$BASE/update.sh" -o update.sh chmod +x detect.sh update.sh METHOD="$(./detect.sh)" echo "[run] method=$METHOD" ./update.sh "$METHOD"