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
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue