Install agentbox from the live git repo
This commit is contained in:
parent
7e6272540d
commit
bf92740823
5 changed files with 30 additions and 18 deletions
|
|
@ -16,6 +16,7 @@ DEB_PKGS=(
|
|||
build-essential
|
||||
cargo
|
||||
cargo-doc
|
||||
catatonit
|
||||
curl
|
||||
direnv
|
||||
emacs-mozc
|
||||
|
|
|
|||
|
|
@ -3,4 +3,4 @@
|
|||
set -euo pipefail
|
||||
IFS=$'\n\t'
|
||||
|
||||
resync-git-sync
|
||||
resync-live-git-repo-packages
|
||||
|
|
@ -1,13 +0,0 @@
|
|||
#! /usr/bin/bash
|
||||
|
||||
set -euo pipefail
|
||||
IFS=$'\n\t'
|
||||
|
||||
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
|
||||
24
.local/bin/resync-live-git-repo-packages
Executable file
24
.local/bin/resync-live-git-repo-packages
Executable 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
|
||||
|
|
@ -23,9 +23,9 @@ uv_update() {
|
|||
uv tool upgrade --all
|
||||
}
|
||||
|
||||
git_sync_update() {
|
||||
echo Updating git-sync...
|
||||
resync-git-sync
|
||||
live_git_repo_update() {
|
||||
echo Updating packages installed directly via git repos...
|
||||
resync-live-git-repo-packages
|
||||
}
|
||||
|
||||
podman_update() {
|
||||
|
|
@ -41,5 +41,5 @@ emacs_update
|
|||
uv_update
|
||||
cargo_update
|
||||
ghup
|
||||
git_sync_update
|
||||
live_git_repo_update
|
||||
podman_update
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue