37 lines
1 KiB
Bash
Executable file
37 lines
1 KiB
Bash
Executable file
#! /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 || true
|
|
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 || true
|
|
else
|
|
cd "$(systemd-path user-state-private)" || exit
|
|
git clone https://github.com/simonthum/git-sync
|
|
fi
|
|
|
|
REPO_DIR="$(systemd-path user-state-private)"/tla-bin
|
|
if [ -d "${REPO_DIR}" ]
|
|
then
|
|
git -C "${REPO_DIR}" pull || true
|
|
else
|
|
cd "$(systemd-path user-state-private)" || exit
|
|
git clone https://github.com/pmer/tla-bin
|
|
fi
|
|
cd "${REPO_DIR}" && \
|
|
./download_or_update_tla.sh && \
|
|
./install.sh "$(systemd-path user-shared)"/tla-bin && \
|
|
chmod --recursive o-rwx "$(systemd-path user-shared)"/tla-bin
|