Install agentbox from the live git repo

This commit is contained in:
Ohad Livne 2026-01-12 21:58:27 +02:00
parent 7e6272540d
commit bf92740823
Signed by: libohad-dev
GPG key ID: 34FDC68B51191A4D
5 changed files with 30 additions and 18 deletions

View file

@ -0,0 +1,24 @@
#! /usr/bin/bash
set -euo pipefail
IFS=$'\n\t'
REPO_DIR="$(systemd-path user-state-private)"/agentbox
if [ -d "${REPO_DIR}" ]
then
git -C "${REPO_DIR}" pull
else
cd "$(systemd-path user-state-private)" || exit
git clone https://github.com/libohad-dev/agentbox
git -C "${REPO_DIR}" checkout podman
ln --symbolic "${REPO_DIR}"/agentbox ~/.local/bin/
fi
REPO_DIR="$(systemd-path user-state-private)"/git-sync
if [ -d "${REPO_DIR}" ]
then
git -C "${REPO_DIR}" pull
else
cd "$(systemd-path user-state-private)" || exit
git clone https://github.com/simonthum/git-sync
fi